Thanks 🙂
I actually need it so search through an entire string full of HTMl though - ie the string would be:
$theString = "<html><head></head<body><img src="images/1.gif"><br><br><h1>hello</h1><img src="images/2.gif"></body></html>
I would then need PHP to go through the string and change every single instance of 'image/' to 'http://www.mydomain.com/~mysite/'
🙂 🙂
If anyone knows of how this can be done please let me know!
many thanks 🙂
dan