eregi_replace HELP!!

From: Date: Mon, 04 Feb 2002 09:25:02 +0000
Subject: eregi_replace HELP!!
Groups: php.general 
Request: Send a blank email to php-general+get-83372@lists.php.net to get a copy of this message
Hello all! I would like to change all the links containing string "microsite" from $contenido1 to: <a href="http://www.whatever.com">Link not available</a>. The rest of the links of $contenido1 would have to be ontouched. To do this, I tried $contenido1=eregi_replace("(<a href=.*microsite.*</a>)","<a href=\"http://www.whatever.com\">Link not available</a>",$contenido1); It changes links with "microsite" in it but erases the ones without microsite. How can I make this work? TIA Regards

« previous php.general (#83372) next »