Extract image url from HTML code using Javascript
<p>I am pulling information from a Page note from the Facebook API. In the output I get an image URL embeded in HTML code. How can I extract the image url from the HTML code below using Javascript?</p>

<pre><code>&lt;img class=\"photo_img img\" src=\"http://photos-c.ak.fbcdn.net/hphotos-ak-ash4/373909_207177302696060_189175211162936_438410_6588114253_a.jpg\" alt=\"\" /&gt;
</code></pre>

<p><strong>UPDATE</strong></p>

<p>The above image tag is embedded in the JSON-response from the Facebook API.
I am also using Appcelerator to create an iOS app.</p>

<p><strong>UPDATE 2</strong></p>

<p>I solved it with: </p>

<pre><code>json.data[i].message.match(/src=(.+?[\.jpg|\.gif|\.png]")/)[1]
</code></pre>

<p>Thankful for all help!</p>
