I want to get a url from a string. Heres my code to extract an img url.
var imgReg = new Regex("img\\s*src\\s*=\\s*\"(.*)\"");
string imgLink = imgReg.Match(page, l, r - l).Groups[1].Value;
The result was
http://url.com/file.png" border="0" alt="
How do i fix this so it ends at the first "? I tried something like
var imgReg = new Regex("img\\s*src\\s*=\\s*\"(.*[^\\\"])\"");
But i got the same results as the original.