PHP正则表达式匹配中文字符 网上有很多类似的文章,但往往都不能用 所以记录一下 preg_match_all("/([x{4e00}-x{9fa5}])/u", $input, $match); 注意:限定代码文件和input字符串都是utf-8编码才可以