正则匹配中文字符

    String regex = "[\\\u4E00-\\\u9FA5]+";
    Matcher matcher = Pattern.compile(regex).matcher("是");
    if(matcher.find()){
        System.out.println(true);
    }

你可能感兴趣的:(正则,中文字符)