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]
# 1
In what way does it not work?< > or ! might be special to regex, and hence need to be escaped with \\ but I'm not sure.
jverda at 2007-7-15 18:41:52 > top of Java-index,Java Essentials,Java Programming...
# 2

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 > top of Java-index,Java Essentials,Java Programming...
# 3
Well buggers it does work. Because of other symtoms I was experiencing in my app, I assumed it wasn't working. When in fact it was. Chasing the wrong tail.Thanks.
unsavorya at 2007-7-15 18:41:52 > top of Java-index,Java Essentials,Java Programming...
# 4
Cool.
jverda at 2007-7-15 18:41:52 > top of Java-index,Java Essentials,Java Programming...