Assuming this is part of an xml file, I wouldn't use regex. Because the regex will become very complex (and hard to read) as your xml file becomes more complex.
I would use an xml parser which will handle the xml-namespaces, the CDATA and more.
Btw: why are there slashes by the attribute? Did you copy it from a String literal?
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Since the CDATA section tag is always written the same way, why not plain String matching such as indexOf() ?