When parsing a bunch of html in plain text format, is regex the best way to extract and examine all anchor tags or is there anything built into the .net lib?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
RegEx is you pal here. There is no HTML parser built into the BCL.
If your input it XHTML (or XML conformant), you can use XML and XPath. Loading the document into a
XmlDocumentand selecting allanodes.