ereg_replace: Help!

From: Date: Tue, 24 Apr 2001 00:32:49 +0000
Subject: ereg_replace: Help!
Groups: php.general 
Request: Send a blank email to php-general+get-49970@lists.php.net to get a copy of this message
I have one ereg_replace problem that I cannot seem to fix. I need to delete an IMG tag. The only thing I know about this tag is that it will contain SRC="images/headers in the string. Here is an example: <IMG ALT="Tools" BORDER=0 HEIGHT=55 SRC="images/headers/tools.gif" WIDTH=455 > I tried this, but it didn't work: $contents = ereg_replace ("<IMG.*images/headers.*>", "", $contents); Can someone please help? Thanks, Erica

« previous php.general (#49970) next »