I'm trying to retrieve URLs that are directly linked to jpg or jpeg images.

example
<a href='site.com/picture.jpg'><img src='tn_picture.jpg'></a>


This is what I have so far.
"/(?i)<a([^\a]+?)href='([^\a]+?)'/i",
"/(?i)<a([^\a]+?)href=\"([^\a]+?)\"/i",
"/(?i)<a([^\a]+?)href=([^\a]+?)[ |>]/i"