note 22813 added to function.preg-replace

From: Date: Mon, 01 Jul 2002 11:02:40 +0000
Subject: note 22813 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-32455@lists.php.net to get a copy of this message
I'm having a problem using preg_replace when replacing with $0,$1 etc. Instead of replacing with what was matched in the regexp, preg_replace is replacing with string matches left over from previous occurences of preg_match. Any idea why it's not overwriting these values with the new matches? -- http://www.php.net/manual/en/function.preg-replace.php http://master.php.net/manage/user-notes.php?action=edit+22813 http://master.php.net/manage/user-notes.php?action=delete+22813 http://master.php.net/manage/user-notes.php?action=reject+22813

« previous php.notes (#32455) next »