Re: [PHP4BETA] bug with preg_replace

From: Date: Fri, 19 Nov 1999 17:14:59 +0000
Subject: Re: [PHP4BETA] bug with preg_replace
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6509@lists.php.net to get a copy of this message
On Fri, 19 Nov 1999, Florent Maffet wrote: > Hi, > > I am using the function preg_replace with the commands > i and e (for case insensitive and execute). > That function used to work fine with PHP4b2, but it seems > that it does not work anymore (in fact it has a weird > behavior) with PHP4b3 (every RCx and also the release version) > > What is done in my code is sthg like: > > preg_replace("/.*\"(.*)\".*/ie","function(\"\\1\");",$string); > > Note that it DOES work fine in PHP4b2 > And it works for the first occurence of the regexp in string, > but not for the following ones I'll take a look at it but can't promise it'll be this week. -Andrei * On the keyboard of life, always keep one finger on the escape key. *

« previous php.version4 (#6509) next »