从字符串中提取数字 java正则表达式 String result = Pattern.compile("[^0-9]").matcher(su).replaceAll("").trim(); int su1=Integer.valueOf(result);