title: only get the src value
body: <p>I have in  the database a field that will always have an  tag. and also lots of text..</p>
  
  <p><strong>For example:</strong>   </p>
  
  <pre><code>Hey there.. whats up?
  &lt;img src="http://cdn.theatlantic.com/static/infocus/ngpc112812/s_n01_nursingm.jpg" alt="" /&gt;
  .. and this is my photo!..
  </code></pre>
  
  <p>I need to get ONLY what between the </p>
  
  <blockquote>
    <p>src</p>
  </blockquote>
  
  <p>I tried :</p>
  
  <pre><code>public string LinkPicCorrect(string path)
  {
      //string input = "[img]http://imagesource.com[/img]";
      string pattern = @"\&lt;img&gt;([^\]]+)\\/&gt;";
      string result = Regex.Replace(path, pattern, m =&gt;
      {
          var url = m.Groups[1].Value;
          // do something with url here
          // return the replace value
          return @"&lt;img src=""" + url + @""" border=""0"" /&gt;";
      },
          RegexOptions.IgnoreCase);
  
      result = "&lt;img src='" + result + "'/&gt;";
  
      return result;
  }
  </code></pre>
  
  <p>But I've got a parsing error :  </p>
  
  <blockquote>
    <p>Exception Details: System.ArgumentException: parsing "\([^]]+)\/>" - Reference to undefined group name img.</p>
  </blockquote>
  
  <p>dont know though if my code is the right path...</p>