正则表达式截取数字 String splitStr = Pattern.compile("[^0-9]").matcher(currentName).replaceAll(""); 通过这个操作来截取数字