String regex="([u4e00-u9fa5]+)"; String str="132更新至456"; Matcher matcher = Pattern.compile(regex).matcher(str); if(matcher.find()){ System.out.println(matcher.group(0)); }
String regex="([u4e00-u9fa5]+)"; String str="132更新至456"; Matcher matcher = Pattern.compile(regex).matcher(str); if(matcher.find()){ System.out.println(matcher.group(0)); }