[Solved] How to split a string with numbers in java


Try following code

String string="ali22mehdi35abba1lala2";
String tok[]=string.split("\\d+");

Now tok would have the split array from numbers.

3

solved How to split a string with numbers in java