正则表达式匹配中文的问题!??

请问如何写匹配中文的正则表达式???
---------------------------------------------------------------

$str = "中文测试";
preg_match_all("/([\x81-\xfe][\x40-\xfe])/", $str, $ch);
$patterns = array_unique($ch[0]);
print_r($patterns);

Published At
Categories with Web编程
Tagged with
comments powered by Disqus