case en_cn:
return preg_match( /^[a-z\u4e00-\u9fa5]{8,20}$/ ,$str);
break;
上面是匹配中文和英文组合的字符串 且长度为8到20 但是是在php里面运行报如下错误
compilation failed: pcre does not support \l, \l, \n, \u, or \u
------解决方案--------------------
http://www.isnono.com/read.php/14.htm
------解决方案--------------------
preg_match( /^[a-z\x4e00-\x9fa5]{8,20}$/ ,$str);
