I would like to extract urls from a regex (not all urls, only some via my regex).
I tried Regex.Match
string html = request.Get(
"http://www.bing.com/search?q=" + keyword + "&first=1"
).ToString();
Match urls = Regex.Match(html, "<h2><a href=\"(.*?)\"");
it only displays one URL, I would like to have all the URLs
EDIT : for people who have had this problem, here is the solution
string pattern = @"<a href=""([^""]+)";
Regex rgx = new Regex(pattern);
foreach (Match match in rgx.Matches(html))
Console.WriteLine("Found '{0}' at position {1}", match.Value, match.Index);