String str = "莫建坡";
String reg = "^.*[^\\x00-\\xff]+.*$";
if(str.matches(reg)){
System.out.println("有中文");
}
java 中文正则表达式
原创
©著作权归作者所有:来自51CTO博客作者莫建坡的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:js 软键盘
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Java正则表达式只能输入中文 java只能输入数字的正则
java正则表达式大全
java 正则表达式 只能输入中文 字符串 正则表达式 下划线