I am grabbing a web page using the WebRequest class. Anyone have any code to parse the a page (the page received) looking for all the links on the page?
I guess kind of like a web spider would do (but I am not doing that).
I would suggest you look into the System.Text.RegularExpressions
namespace (the RegEx class) to use RegularExpressions for matching
links. I don't have any examples right now, but there are plenty of
examples of matching URLs in HTML using regex on the net.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.