Java: removing numeric values from string

This will remove all digits:

firstname1 = firstname1.replaceAll("\\d","");

Leave a Comment