http://hedong.3322.org/archives/000309.html http://hedong.3322.org/rchives/Regular Expressions/ How to use regular expressions Chinese?
Since the Chinese ASCII code has a certain range. So you can represented Chinese with the following regular expressions. / ^ [CHR (0xA1) -chr (0xFF)] $ / below is an example of use: $ Str = "Beyond PHP"; if (preg_match ("/ ^ [". chr (0xa1). "-". CHR (0xFF). "] $ /", $ STR)) {echo "This is a pure Chinese string";} else {echo "This is not a pure Chinese string";