php 中文正则

utf8编码中文

 preg_match("/^[x{4e00}-x{9fa5}]+$/u")   

而不是

 "/^[x4e00-x9fa5]+$/u"

原文地址:https://www.cnblogs.com/the-moving-ear/p/4159883.html