I think this is an easy question, but I am not able to find a simple solution (say, less than 10 lines of code :)
I have a String such as \"thisIs
String
\"thisIs
Try this;
static Pattern p = Pattern.compile("(?=\\p{Lu})"); String[] s1 = p.split("thisIsMyFirstString"); String[] s2 = p.split("thisIsMySecondString"); ...