Can anyone help me to split the string by number Eg: "I Need 5000 points" is the string I want "5000" from that string.
I tried many ways like:
//split the string by RegExp:
String array = string.split(".*\\d.")
I am getting the output but its not what I expect
Output:
array[0] = ""
array[1] ="points
Can anyone help me to find the proper solution?