preg_replace("`src=\"?(^http://)(.*)\"?`iU","src=\"http://www.blah.com/\\1\"",$myrow[0]);

is the regex that I'm using for an "email this article" script. It is supposed to take all relative image src's, ie <img src="images/blah.gif", and append "http://www.blah.com/" to them, so that in the image it will be: <img src="http://www.blah.com/images/blah.gif". It is also supposed to work when the image src is src=imageSrc, or src="imageSrc". But it doesn't do anything =(. Any ideas?



[Edited by Anarchos on 10-29-2000 at 08:20 PM]