kotlin split by uppercase
snippet in kotlin

kotlin split by uppercase

user2776

String s = "thisIsMyString";
String[] r = s.split("(?=\\p{Upper})");