note 22813 deleted from function.preg-replace by sander

From: Date: Sat, 15 Feb 2003 15:21:21 +0000
Subject: note 22813 deleted from function.preg-replace by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43978@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?

« previous php.notes (#43978) next »