Regex <! ELEMENT>
Hi, I am trying to create a regex that will match any <!> tag. Such as <! ELEMENT>.I am using replaceall.But this doesn't work:string.replaceAll("<![^>]*>", "");Ideas?
[224 byte] By [
unsavorya] at [2007-10-2 1:20:23]

Works for me.
string = string.replaceAll(...); // YES
string.replaceAll(...); //NO
The second one "works", but won't have the effect you want. String is immutable, so you need to capture the new string, which is returned from replaceAll.
jverda at 2007-7-15 18:41:52 >
