RE: [PHP] preg_replace update

From: Date: Fri, 11 Apr 2003 01:30:05 +0000
Subject: RE: [PHP] preg_replace update
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143421@lists.php.net to get a copy of this message
i think that has to deal with the \f in PCRE...what's it in there for anyway? > -----Original Message----- > From: daniel [mailto:daniel@electroteque.org] > Sent: Thursday, April 10, 2003 9:25 PM > To: php-general@lists.php.net > Subject: [PHP] preg_replace update > > > ok guys sorry i've prob asked this question too many times, i'm trying to > replace the eregi_replace with preg_replace but my syntax is wrong > > $replaced_content = > preg_replace("/\[f$key\f\]/i",$value,$replaced_content); > > this doesnt seem to work where > this does > > $replaced = eregi_replace("\[f$key\f\]","$value",$replaced); > > > any ideas ? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#143421) next »