Mb_regex_encoding (UTF-8); $ string Chinese; $ outstrmb_ereg_replace ([^, simplified, $ string); echo $ outstr ;? Reference www. php. netmanualenfunction. mb-ereg-replace.php original address: PHP regular expression to replace the Chinese string, thank you for sharing.
Mb_regex_encoding ('utf-8'); $ string = 'Chinese; $ outstr = mb_ereg_replace ([^, simplified, $ string); echo $ outstr;?> Reference http://www.php.net/manual/en/function.mb-ereg-replace.php original address: PHP regular expression to replace the Chinese string, thanks to the original author to share.
Mb_regex_encoding ('utf-8 ');
$ String =' Chinese ';
$ Outstr = mb_ereg_replace (' [^ <] + ',' Simplified ', $ String );
Echo $ outstr;
?>
References
Http://www.php.net/manual/en/function.mb-ereg-replace.php
Original article address: Replace the Chinese string with a PHP regular expression. Thank you for sharing it.