Lets say I have an XML in the form of a string. I wish to remove the content between two tags within the XML String, say . I have tried:
String newString = oldString.replaceFirst("\\<tagName>.*?\\<//tagName>",
"Content Removed");
but it does not work. Any pointers as to what am I doing wrong?