How can i split 100.26kg to System.out.println as
100.26
kg
I tried doing by using ("\d+") but was not successful.
String[] num = myTextCount.split("\\d+");
The 100.26kg may vary according to user input. It could be 100.26kg, 100g, 100 pounds or 100litre. If there is any way to split the number and alphabet, it will be very helpful
#kgwhere#is any number, don't use regex.