Java Hapus Non Number dari String

String str = "a12.334tyz.78x";
str = str.replaceAll("[^\\d.]", "");
Dull Dove