note 118693 added to regexp.reference.unicode
| From: | huhwatnouDONTspamPLEASE at hotmail dot com | Date: | Wed, 20 Jan 2016 09:00:55 +0000 |
| Subject: | note 118693 added to regexp.reference.unicode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204732@lists.php.net to get a copy of this message | ||
To select UTF-8 mode for the additional escape sequences (\p{xx}, \P{xx}, and \X) , use the
"u" modifier (see http://php.net/manual/en/reference.pcre.pattern.modifiers.php).
I wondered why a German sharp S (Ã) was marked as a control character by \p{Cc} and it took me a
while to properly read the first sentence: "Since 5.1.0, three additional escape sequences to
match generic character types are available when UTF-8 mode is selected. " :-$ and then to find
out how to do so.
----
Server IP: 72.52.91.14
Probable Submitter: 37.17.216.237
----
Manual Page -- http://php.net/manual/en/regexp.reference.unicode.php
Edit -- https://master.php.net/note/edit/118693
Del: integrated -- https://master.php.net/note/delete/118693/integrated
Del: useless -- https://master.php.net/note/delete/118693/useless
Del: bad code -- https://master.php.net/note/delete/118693/bad+code
Del: spam -- https://master.php.net/note/delete/118693/spam
Del: non-english -- https://master.php.net/note/delete/118693/non-english
Del: in docs -- https://master.php.net/note/delete/118693/in+docs
Del: other reasons-- https://master.php.net/note/delete/118693
Reject -- https://master.php.net/note/reject/118693
Search -- https://master.php.net/manage/user-notes.php