正则匹配中文字符

来源:互联网 发布:淘宝属性词是什么 编辑:程序博客网 时间:2024/05/17 09:27
    String regex = "[\\\u4E00-\\\u9FA5]+";    Matcher matcher = Pattern.compile(regex).matcher("是");    if(matcher.find()){        System.out.println(true);    }
0 0
原创粉丝点击