中文的模式:"[\\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!");

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-07-25
猜你喜欢
  • 2021-11-14
  • 2021-09-13
  • 2022-12-23
  • 2021-09-17
  • 2021-07-06
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案