正则匹配中文

//如果只想匹配中文,中文的ASI编码为[u4e00-u9fa5]
$str = preg_replace("/[x{4e00}-x{9fa5}]/iu","zh",$str); 
原文地址:https://www.cnblogs.com/leezhxing/p/4333765.html