G
gwoodhouse
Hello,
Quick one:
I'm trying to remove this from a String: "<![CDATA["
But when using this line it ignores it (Would usually just single
escape it but java doesn't like that either):
tagContents.replaceAll("<!\\[CDATA\\[", "");
When using this one it throws an execption (With good cause since [ is
a regex special character):
tagContents.replaceAll("<![CDATA[", "");
Whats your guys suggestion?
Graeme
Quick one:
I'm trying to remove this from a String: "<![CDATA["
But when using this line it ignores it (Would usually just single
escape it but java doesn't like that either):
tagContents.replaceAll("<!\\[CDATA\\[", "");
When using this one it throws an execption (With good cause since [ is
a regex special character):
tagContents.replaceAll("<![CDATA[", "");
Whats your guys suggestion?
Graeme