title: Get image url from content containing an image
body: <p>I am building a small cms system for personal use. A part of it requires me to get the first image url in an article. How can I do this?</p>
  
  <p><strong>Sample article content in variable <code>$article</code></strong></p>
  
  <pre><code>&lt;p&gt;
  &lt;img src="/images/userContent/2013-07-12%2022_27_34.png"&gt;
  The griefing problem has been curbed!
  &lt;/p&gt;
  </code></pre>
  
  <p>How can I get the url <code>/images/userContent/2013-07-12%2022_27_34.png</code> 
  <br/>
  Possibly regex? if yes, how? I am clueless with regex</p>