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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to