请教一个正则

如题,正则大白请教,多谢。

array(‘tags’, ‘match’, ‘pattern’=>’/^[\x00-\xff,]+$/’, ‘message’ => ‘Tags can only contain word characters.’)

这样搞定,请高手指教。

utf8应该是这个


'pattern'=>'/^[\x{4e00}-\x{9fa5}\w\s,]+$/u',