Parsing for web links

jhilb

Freshman
Joined
Jan 14, 2002
Messages
27
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).

Thanks
J
 
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.

Google :)
 
Back
Top