正则表达式:判断一个词是否全是汉字 Leave a Comment / Non-Java Language / July 14, 2013 July 14, 2013 if (preg_match("/^[\x{4e00}-\x{9fa5}]+$/u",$str)) { return true; }