note 105956 added to function.preg-replace
| From: | randall dot reynolds at rightnow dot com | Date: | Wed, 28 Sep 2011 00:01:27 +0000 |
| Subject: | note 105956 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183495@lists.php.net to get a copy of this message | ||
The instructions say, use \\\\ (four backslashes) to represent a backslash. You can shorthand this
and use \\\ (three backslashes) to represent a backslash, because of the way the parsers read it.
It appears the double escaping is required because the string is parsed twice, once by PHP and once
by the regular expression generator. Thus it is expected that the PHP parser turns both instances
above into \\ (two backslashes) for the PCRE parser.
----
Server IP: 69.147.83.197
Probable Submitter: 208.72.88.126
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/105956
Del: integrated -- https://master.php.net/note/delete/105956/integrated
Del: useless -- https://master.php.net/note/delete/105956/useless
Del: bad code -- https://master.php.net/note/delete/105956/bad+code
Del: spam -- https://master.php.net/note/delete/105956/spam
Del: non-english -- https://master.php.net/note/delete/105956/non-english
Del: in docs -- https://master.php.net/note/delete/105956/in+docs
Del: other reasons-- https://master.php.net/note/delete/105956
Reject -- https://master.php.net/note/reject/105956
Search -- https://master.php.net/manage/user-notes.php