public static boolean checkChinese(String sequence) { final String format = "[//u4E00-//u9FA5//uF900-//uFA2D]"; boolean result = false; Pattern pattern = Pattern.compile(format); Matcher matcher = pattern.matcher(sequence); result = matcher.find(); return result; }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/10723.html