well my ereg powers are much more limited thant my preg powers...
I just don't know how to do a negative lookahead assertion with the ereg() functions
i tried to simulate it with
NOT H, NOT T, NOT T, NOT T, NOT P
[h][t][t][p]
but i guess thats not write
if you don't mind using preg() then plop this guy in and you are good to go...
return preg_replace( '/((<a href|<img src)=[\"\'])(?!http:\/\/)/i', "$1$base_url", $string );
anyone who knows how to do this in ereg() polease post i would be interested