<code>$name=$_POST['name'];$nr="/^[a-zx{4e00}-x{9fa5}]+$/iu";preg_match($nr,$name,$match)</code>
出现一下错误:
preg_match(): Delimiter must not be alphanumeric or backslash
我看到stackoverflow上说没有分隔符,我想应该不是这个原因,不知道是什么问题?
回复内容:
<code>$name=$_POST['name'];$nr="/^[a-zx{4e00}-x{9fa5}]+$/iu";preg_match($nr,$name,$match)</code>
出现一下错误:
preg_match(): Delimiter must not be alphanumeric or backslash
我看到stackoverflow上说没有分隔符,我想应该不是这个原因,不知道是什么问题?
2本文来源gao!daima.com搞$代!码网
搞代gaodaima码
你是要匹配中文吗?
$nr="/^[a-z\x{4e00}-\x{9fa5}]+$/iu";