/** * @author lautturi.com * Java example: remove all numeric characters of string in java */ import java.util.*; public class Lautturi { public static void main(String[] args) { String str = "hello 123 world 1auttur12456 "; str = str.replaceAll("\\d", ""); System.out.println(str); } }Source:www.lautturi.com
output:
hello world auttur