title: preg_match_all , get all img tag that include a string
body: <p>this code get all img tags</p>
  
  <pre><code>preg_match_all('/&lt;img[^&gt;]+&gt;/i',$a,$page);
  </code></pre>
  
  <p>but I want get tags that their filenames includes "next.gif" or "pre.gif"</p>
  
  <p>for example :</p>
  
  <pre><code>$page = '
  &lt;img border="0" alt="icon" src="http://www.site.com/images/man.gif" width="90" height="90"&gt;
  &lt;img border="0" alt="icon" src="http://www.site.com/images/pre.gif" width="90" height="v"&gt;
  &lt;img border="0" alt="icon" src="http://www.site.com/images/2.gif"&gt;
  &lt;img border="0" alt="icon" src="http://www.site.com/images/next.gif" width="90" height="90"&gt;
  ';
  </code></pre>
  
  <p>and I output should be like this :</p>
  
  <pre><code>   &lt;img border="0" alt="icon" src="http://www.site.com/images/pre.gif" width="90" height="90"&gt;
      &lt;img border="0" alt="icon" src="http://www.site.com/images/next.gif" width="90" height="90"&gt;
  </code></pre>