Warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset
匹配中文字符正则表达式抛错 如上 [u4e00-u9fa5]可以匹配中文,但是PHP又不支持 可以使用[\x80-\xff]{2,4} 支持匹配全角字符. 知道了php中utf-8编码下用正则表达式匹配汉字的最终正确表达式—— /^[...
阅读全文