🙁 No what I wanted is how to replace file content looks like this:
$olddata='<a href="art.htm"><img src="moon.gif"></a><a href="art.htm">My Show Room</a> It contains my stuff (no link text).. <a href="art.htm">more</a> <a href="work.htm"><img src="drve.jpg">My Work is a buss driver</a> who drives a buss (no link)<a href="work.htm">more</a>.. ';
with this:
$newdata='<span class="imgShade"><a href="art.htm"><img src="moon.gif"></a></span><a href="art.htm">My Show Room</a>
<a href="work.htm"><span class="imgShade"><img src="drve.jpg"></a></span><a href="work.htm">My Work is a buss driver</a>.. ';