I have been trying to implement the seperation of string into string and number in java. As of now following pattern gives me number after string as follows:
String[] part = string.split("(?<=\\D)(?=\\d)");
Ans: "ABC123" -> ["ABC","123"]
But it fails in following scenario
"A1BC123" ->
expected output: ["A1BC","123"]
Kindly help