替换掉字符串里的数字package com;public class OO { public static void main(String[] args) { String str="asdf345ghdsdf785sdfgf6dfg4dfgdf2561"; str=str.replaceAll("\\d+", ""); System.out.println(str); }}