Parsing HTML with


This question already has an answer here:


Give the HTMLAgilityPack a look into. Its a pretty decent HTML parser


Here's some code to get you started (requires error checking)

HtmlDocument document = new HtmlDocument(); 
string htmlString = "<html>blabla</html>";
HtmlNodeCollection collection = document.DocumentNode.SelectNodes("//a");
foreach (HtmlNode link in collection)
     string target = link.Attributes["href"].Value;

You can use regular expression (Regex class) for it. The expression can be something like that: login.html\?key=[^"]*

Need Your Help

what's the meaning of %r in python

python sign

what's the meaning of %r in the following statement?

SHA1 error when using brew install


More specifically, I was using homebrew to install MySQL, and I got this error: