Java Hapus karakter non numerik dari string
myString.replaceAll("\\D", "")
Jared Black
myString.replaceAll("\\D", "")
String str = "a12.334tyz.78x";
str = str.replaceAll("[^\\d.]", "");