Hi folks,

I'm trying my hand at some pattern matching, and I have a question.

I need to take all the text between the title tags of a page, and replace it.  This I 
can do, with the following:

$fixedfile=ereg_replace("<title>.*</title>","<title><? echo \$bstitle; ?></title>", 
$fixedfile);
works like a charm....

Now I want to delete everything in the src section of an image tag, so I'm trying this:

$fixedfile=ereg_replace("src=\".*\">","src=\"<!---image goes here--->\"", $fixedfile);

but this doesn't work.  

What am I doing wrong?

Kelly

Reply via email to