title: Regular expression match all image URLs
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3838887/get-img-code-and-link-from-text">How to get IMG tag code from HTML document?</a>  </p>
  </blockquote>
  
  
  
  <p>I need help to make <strong>preg_match_all()</strong> for every image URL on random page.<br>
  As far I do this  </p>
  
  <pre><code>preg_match_all('/img[\d\D]+?src\=(\'|\")([\d\D]+?)(\'|\")/i', $page, $matches); 
  </code></pre>
  
  <p>But won't work for every page.
  Must match all possible image closed in <strong>img src</strong> also ones that doesn't look like images.
  thank you</p>