note 105956 deleted from function.preg-replace by cmb

From: Date: Mon, 21 Nov 2016 19:39:37 +0000
Subject: note 105956 deleted from function.preg-replace by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207309@lists.php.net to get a copy of this message
Note Submitter: randall dot reynolds at rightnow dot com ---- 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.

« previous php.notes (#207309) next »