title: PHP Get All URL's of Images From String
body: <p>I need a function or Regex string for PHP that I can pass a string through like so:</p>
  
  <blockquote>
    <p>Lorem ipsum dolor sit amet, <a href="http://www.gettyimages.com/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg" rel="noreferrer">http://www.gettyimages.com/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg</a> consectetur adipiscing elit. Nullam sed diam lectus, a rutrum orci. Suspendisse potenti. Nulla facilisi. Suspendisse potenti. Ut <a href="http://www.handsonuniverse.org/get_images/images/20090802.ngc6992.HOS.jpg" rel="noreferrer">http://www.handsonuniverse.org/get_images/images/20090802.ngc6992.HOS.jpg</a> ullamcorper mauris sit amet elit tristique sit amet laoreet nunc condimentum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam euismod arcu non odio <a href="http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg" rel="noreferrer">http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg</a> aliquam vestibulum. Sed eleifend tellus id augue luctus ac ultrices leo semper.</p>
  </blockquote>
  
  <p>And I would would get in return get:</p>
  
  <blockquote>
    <p><a href="http://www.gettyimages.com/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg" rel="noreferrer">http://www.gettyimages.com/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg</a>
     <a href="http://www.handsonuniverse.org/get_images/images/20090802.ngc6992.HOS.jpg" rel="noreferrer">http://www.handsonuniverse.org/get_images/images/20090802.ngc6992.HOS.jpg</a>
     <a href="http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg" rel="noreferrer">http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg</a></p>
  </blockquote>
  
  <p>in an array. I need it to grab the URL's based on weather or not they contain regular image extensions, such as *.jpg, *.png, *.bmp, etc. Anyone know one that exists so I can avoid reinventing the wheel? Thanks!</p>