PHP正则匹配中文汉字会得到�

 

preg_match('/^[a-zA-Zx{4e00}-x{9fa5}]+$/u', $str)
原文地址:https://www.cnblogs.com/wdw31210/p/11230550.html