if(preg_match("/^[-\w\x{4e00}-\x{9fa5}]{1,6}$/u","q")){ echo'OK'; }else{ echo'NO'; }原文链接:https://www.f2er.com/regex/358850.html
if(preg_match("/^[-\w\x{4e00}-\x{9fa5}]{1,6}$/u","q")){ echo'OK'; }else{ echo'NO'; }原文链接:https://www.f2er.com/regex/358850.html