note 106981 deleted from function.preg-replace by crell
| From: | crell@php.net | Date: | Fri, 01 Jul 2022 20:07:57 +0000 |
| Subject: | note 106981 deleted from function.preg-replace by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218877@lists.php.net to get a copy of this message | ||
Note Submitter: denis_truffaut a t hotmail d o t com
----
If you want to catch characters, as well european, russian, chinese, japanese, korean of whatever,
just :
- use mb_internal_encoding('UTF-8');
- use preg_replace('
...u', '...', $string) with the u (unicode)
modifier
For further information, the complete list of preg_* modifiers could be found at :
http://php.net/manual/en/reference.pcre.pattern.modifiers.php