java remove characters from string but leave numbers code example
Example: java remove non numbers from string
String str = "a12.334tyz.78x";
str = str.replaceAll("[^\\d.]", "");
String str = "a12.334tyz.78x";
str = str.replaceAll("[^\\d.]", "");