Hello.
I have a variable that can have several img tags, like:
$var = "<img src='c:\dir\image1.jpg'> other <img src='c:\dir\otherdir\image2.jpg'> stuff".
And I need to make those become:
http://sitename/images/image1.jpg
http://sitename/images/image2.jpg
And I also need the number of "replacements" that were done in the string.
This would be done with ereg_replace but I don't know much about regular expressions, so if anyone can spend some time helping out, I would apreciatte.
Thanks.