I have a simple xml file and I want to remove everything before the first <item>
tag.
<sometag>
<something>
.....
</something>
<item>item1
</item>
....
</sometag>
The following java code is not working:
String cleanxml = rawxml.replace("^[\\s\\S]+<item>", "");
What is the correct way to do this? And how do I address the non-greedy issue? Sorry I'm a C# programmer.