Here is a String, I want to split the string such that the symbols and "words" are separate. For example:
String s = "/xyz/abc[bcd(text(),\"string\")]";
I want to have a String array like
String[] result = {"/","xyz","/","abc","[","bcd","(","text","(",")",",","\"","string","\"",")","]"}
How can I do this by using regular expression?