title: preg_match_all function for getting images(with specific exitension & width-height) from url
body: <p>Firstly I am fresher for PHP.
  I am using follwing PHP expression for getting all images from given url.</p>
  
  <pre><code>@preg_match_all("&lt;img.+?src=[\"'](.+?)[\"'].+?&gt;", $homepage, $matches, PREG_SET_ORDER);
  </code></pre>
  
  <p>but this expression fetches all images with gif images also &amp; 1KB sized images also.</p>
  
  <p>I want to fetch the images with minimum width 100px &amp; extension should be .png/.jpg</p>
  
  <p>Please provide me a solution if anyone have.</p>
  
  <p>Thanks</p>