String clean1 = string1.replaceAll("[^0-9]", "");

or

String clean2 = string2.replaceAll("[^\\d]", "");


String clean3 = string1.replaceAll("\\D", "");

http://stackoverflow.com/questions/6883579/java-regular-expression-removing-everything-but-numbers-from-string