中文的模式:"[\\u4e00-\\u9fa5]|\\\\u"
例子:
private static final Pattern p = Pattern.compile("[\\u4e00-\\u9fa5]|\\\\u");
Matcher m = p.matcher(str);
if(m.find()){
System.out.println("found!");
}
中文的模式:"[\\u4e00-\\u9fa5]|\\\\u"
例子:
private static final Pattern p = Pattern.compile("[\\u4e00-\\u9fa5]|\\\\u");
Matcher m = p.matcher(str);
if(m.find()){
System.out.println("found!");
}