I\'d like to parse a string so I can build an XML document.
I have:
String value = \"path=/Some/Xpath/Here\";
I\'ve parsed it this way
Although the question is tagged with regex here is a solution using substring
regex
substring
String[] tokens = s.substring(s.indexOf("=") + 1).split("/");
or
String[] tokens = s.substring(s.indexOf("=/") + 1).split("/");