Check out example codes for "kotlin split by uppercase". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com