java remove non numbers from string

55

java remove non numbers from string -

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

Comments

Submit
0 Comments