I'm trying to get all the links from a web page. So far I have the page source stored in a string. I have done similar things like this in Java, using a string tokenizer. I've looked around trying to find something like this for C# but apparently it doesn't have this function. What would be the best way about going about this? I've found a split string method using delimiters, but that doesn't look very efficient. Any advice?
sfrider0
6
Junior Poster
Recommended Answers
Jump to Postyou are correct, String.split is the way to go to treat it the same as the tokenizer
the other way would be to use regex
All 4 Replies
dickersonka
104
Veteran Poster
LizR
171
Posting Virtuoso
sfrider0
6
Junior Poster
dickersonka
104
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.