I want to delete all the comma(,) and dot(.) from a string. That is if the input is "1,236,4as4.00" I want the output to be "12364as400". Any help will be highly appreciated.
Regards,
Anil Kumar Saha
SCJP 1.4
http://www.agilej.blogspot.com/
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
Something like String.replaceAll("[,\\.]\+", "") should do the trick.