title: How to get IMG tag code from HTML document?
body: <p>how I get the <code>img</code> code from a text?
  Now I get the code and URL if the tag looks like: <code>text text &lt;img src = "image.gif" /&gt;</code>, but if the code is <code>&lt;img src = "image.gif" target = _blank /&gt;</code>, then I get the URL: <code>"image.gif" target = _blank</code>.</p>
  
  <p>So, how correctly find <code>img</code> full code and URL?</p>
  
  <p>Thanks</p>
  
  <pre><code>preg_match_all('/\&lt;img src = (.*?)\/&gt;/', $input, $all_img);
  </code></pre>