Java usuwa znaki nieumeralne z ciągu
myString.replaceAll("\\D", "")
Jared Black
myString.replaceAll("\\D", "")
String str = "a12.334tyz.78x";
str = str.replaceAll("[^\\d.]", "");