Need a regex that will verify/extract a image url from a submitted link.
It could be in the form of
http://www.domain.com/subfolder/ ... /image.jpg
or could be embed text from another like:
<a href="
http://icanhascheezburger.com/2008/04/22/funny-pictures-just-for-the-attention/"
><img class="alignnone size-full wp-image-51237" style="word-spacing:897247
px;font-si
ze:897247p
x;" src="
http://icanhascheezburger.wordpress.com/files/2008/04/funny-pictures-emo-goat-in-tree.jpg" alt="humorous pictures" width="500" height="336" /></a><br />see more <a href="
http://icanhascheezburger.com"
>crazy cat pics</a>
For the above text, it would extract "
http://icanhascheezburger.wordpress.com/files/2008/04/funny-pictures-emo-goat-in-tree.jpg"
I've googled forever and all I could find are ones that either match a href="" or src="" or a straight URL like
http://domain.com/ ... /image.jpg
Can match on the image types: jpg, bmp, gif, png
Thanks for the help!
Start Free Trial