PHP 匹配中文字符$str = "welcome,to 上海e2003网页.net服务中心."; $pattern = "/^[\x00-\xff]+$/"; preg_match_all("/[\x{4e00}-\x{9fa5}]+/u",$str,$match); print_r($match);로그인 후 복사