Java 正则记录

2021-11-15  本文已影响0人  没有了遇见

判断是否是英文

 public static boolean isAllChinese(String message) {
    return Pattern.compile("[\\u4e00-\\u9fa5]+").matcher(message).matches();
}
上一篇 下一篇

猜你喜欢

热点阅读