note 21027 added to pcre.pattern.syntax

From: Date: Thu, 25 Apr 2002 16:31:12 +0000
Subject: note 21027 added to pcre.pattern.syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-29843@lists.php.net to get a copy of this message
Backreferences in PHP PERC regex match patterns should be prefixed with TWO backslashes, not ONE like this documentation says. This will NEVER match a quoted string: {(\"|').*?\1}msi This will ALWAYS match a quoted string: {(\"|').*?\\1}msi I hope this prevents someone else the hours of troubleshooting it caused me! Mars :) -- http://www.php.net/manual/en/pcre.pattern.syntax.php http://master.php.net/manage/user-notes.php?action=edit+21027 http://master.php.net/manage/user-notes.php?action=delete+21027 http://master.php.net/manage/user-notes.php?action=reject+21027

« previous php.notes (#29843) next »