I have a String that I want to split;
String x = "abc4.5efg2hij89k.9";
I want the output as
abc, 4.5, efg, 2, hij, 89, k, .9
I can easily split across digits and non digits however '.' is considered a character.
x.split("(?<=\\D)(?=\\d)|(?<=\\d)(?=\\D)")
[abc, 4, ., 5, efg, 2, hij, 89, k., 9]
What is the best way of supporting doubles?
[A-Z,a-z]to exclude.from matching