note 109789 added to regexp.reference.escape
| From: | Liesbeth | Date: | Tue, 21 Aug 2012 11:14:19 +0000 |
| Subject: | note 109789 added to regexp.reference.escape | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-190153@lists.php.net to get a copy of this message | ||
The documentation states that \h and \v work as of PHP 5.2.4. This is incorrect: I have PHP 5.3.3
with PCRE version 6.6 and these "escape sequences" are matching literal 'h' and
'v' without any kind of warning.
According to http://stackoverflow.com/questions/7882890/php-preg-replace-ignoring-h-and-v-flags
PCRE version 7.2 is required. You can check with phpinfo() what version of PCRE you are using.
----
Server IP: 69.147.83.197
Probable Submitter: 213.125.167.242
----
Manual Page -- http://www.php.net/manual/en/regexp.reference.escape.php
Edit -- https://master.php.net/note/edit/109789
Del: integrated -- https://master.php.net/note/delete/109789/integrated
Del: useless -- https://master.php.net/note/delete/109789/useless
Del: bad code -- https://master.php.net/note/delete/109789/bad+code
Del: spam -- https://master.php.net/note/delete/109789/spam
Del: non-english -- https://master.php.net/note/delete/109789/non-english
Del: in docs -- https://master.php.net/note/delete/109789/in+docs
Del: other reasons-- https://master.php.net/note/delete/109789
Reject -- https://master.php.net/note/reject/109789
Search -- https://master.php.net/manage/user-notes.php