PHP 正则匹配中文 gb2312: $pattern="/^[".chr(0xa1)."-".chr(0xff)."]+$/m"; utf-8: $pattern="/^[\x{4e00}-\x{9fa5}]+$/u";