preg_match(
"|<a[^>]+href=\"$url\"[^>]*><img[^>]+src=\"(.+?)\"[^>]*></a>|i", $potential_pages[1], $out);
This regular expression is suppose to look in a chunk of HTML, find links pointing to a certain URL, then extract the images src within the link. It kinda works however it doesnt return just the images src, it returns everything within the image tag ie output looks like this:
[1] => http://examplesite.com/thumb/070905.jpg" border="0" style="width:100px; height:100px;">
when I want it to output this:
[1] => http://examplesite.com/thumb/070905.jpg
Any help would be greatly appreachiated!
cheers!