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
For anyone that wonders how the Pattern is when the String to split might start with an upper case character:
String s = "ThisIsMyString"; String[] r = s.split("(?<=.)(?=\\p{Lu})"); System.out.println(Arrays.toString(r));
gives: [This, Is, My, String]