title: Any preg_match() to extract image urls from text?
body: <p>i need a <strong><code>preg_match()</code></strong> syntax or something similar to extract <strong>JPG</strong> or <strong>PNG</strong> or <strong>GIF</strong> URLs from a mixed text and put them in an array or at last store the first url.</p>
  
  <p>maybe some syntax which searchs for strings that are beginning with http and ending with jpg/png/gif..</p>
  
  <p>i believe it can be done with <strong><code>preg_match()</code></strong></p>
  
  <p>Note: the text can be like that : <strong>blablablabla"<a href="http://www.example.com/xxx.jpg" rel="nofollow noreferrer">http://www.example.com/xxx.jpg</a>"blablablabla</strong></p>