Yeah OK but i want to keep the other image attributes.
So, even if I find the correct line with it on, I firstly have no idea how many spaces into the line it is.
Think of it, I am using file() to split the HTML into lines. Then doing a foreach to check each row.
Here is an example row:
<td width="210" valign="top" background="blah.gif">
Firstly, I would need to search for /.gif rather than <img
Secondly, the script only finds the ".gif" bit not the "blah" bit thus giving me no way of saying replace blah.gif