title: How can I use regular expression to grab an 'img' tag?
body: <p>I want to grab an <code>img</code> tag from text returned from JSON data like that. I want to grab this from a string:</p>
  
  <pre><code>&lt;img class="img" src="https://fbcdn-photos-c-a.akamaihd.net/hphotos-ak-frc3/1239478_598075296936250_1910331324_s.jpg" alt="" /&gt;
  </code></pre>
  
  <p>What is the regular expression I must use to match it?</p>
  
  <p>I used the following, but it is not working.</p>
  
  <pre><code>"&lt;img[^&gt;]+src\\s*=\\s*['\"]([^'\"]+)['\"][^&gt;]*&gt;"
  </code></pre>