Java: removing numeric values from string April 12, 2024 by Tarik This will remove all digits: firstname1 = firstname1.replaceAll("\\d","");