RE: [PHP] preg_replace update

From: Date: Fri, 11 Apr 2003 01:51:54 +0000
Subject: RE: [PHP] preg_replace update
Groups: php.general 
Request: Send a blank email to php-general+get-143426@lists.php.net to get a copy of this message
yeh you're telling me , its what was put into place before me @ work , they were using an eregi statment and checked for keys with the f's , so inefficient :\, i cannot change this unless i change the whole strucutr on how ppl put content in , basically [f2000f] i put into the content where 2000 is a key to a video file in the database and on the replacement replaces that with a link to a realvideo file , they did the same for hyperlinks [wwww.something.com|something herew] notice the "w" so inneficient arrh. >===== Original Message From "Jack Dempsey" <dempsejn@georgetown.edu> ===== >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 >> >> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#143426) next »