Pattern: /[\u4e00-\u9fa5]+/

Warning: preg_match_all(): Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 2 in /var/www/html/demo/regexp/chinese_match.php on line 26
array(3) { ["stauts"]=> bool(true) ["msg"]=> string(7) "Success" ["matches"]=> NULL }
Pattern: /[\x{4e00}-\x{9fa5}]+/u
array(3) { ["stauts"]=> bool(true) ["msg"]=> string(7) "Success" ["matches"]=> array(1) { [0]=> array(1) { [0]=> string(12) "中文汉字" } } }
Pattern: /[\x7f-\xff]+/
array(3) { ["stauts"]=> bool(true) ["msg"]=> string(7) "Success" ["matches"]=> array(1) { [0]=> array(1) { [0]=> string(12) "中文汉字" } } }