 <p>Try using regex as a lightweight solution.</p> <p>Try this regex (tested on <a href="http://regexpal.com/" rel="nofollow">http://regexpal.com/</a>):</p> <pre><code>src=\"([^\"]*)\" </code></pre> <p>And you could extract the string using captured group</p> <p>Sample code:</p> <pre><code>string input = "&lt;img alt=\"Desert.jpg\" src=\"/PublishingImages/Lists/Images/NewForm/Desert.jpg\" width=\"174\" style=\"BORDER: 0px solid; \"&gt;"; string pattern = "src=\"([^\"]*)\""; string extractedString = Regex.Match(input, pattern).Groups[1].Value; </code></pre>