note 27628 added to pcre.pattern.syntax

From: Date: Fri, 13 Dec 2002 13:09:31 +0000
Subject: note 27628 added to pcre.pattern.syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-40861@lists.php.net to get a copy of this message
concerning the buracco at yahoo dot com's problem, I found a dirty hack to make it work : instead of preg_replace($pattern, "\$1$replacement\$3" ,$subject) use preg_replace($pattern, "\$1\$99$replacement\$3" ,$subject) Since there cannot be more than 99 backreferences, the numerical value of $replacement will be treated on its own. Hope it helps... http://onpk.noparking.net/ => php weblog -- http://www.php.net/manual/en/pcre.pattern.syntax.php http://master.php.net/manage/user-notes.php?action=edit+27628 http://master.php.net/manage/user-notes.php?action=delete+27628 http://master.php.net/manage/user-notes.php?action=reject+27628

« previous php.notes (#40861) next »