I'm working on a method that accepts a string (html code) and returns an array that contains all the links contained with in.
I've seen a few options for things like html ability pack but It seems a little more complicated than this project calls for
I'm also interested in using regular expression because i don't have much experience with it in general and i think this would be a good learning opportunity.
My code thus far is
WebClient client = new WebClient(); string htmlCode = client.DownloadString(p); Regex exp = new Regex(@"http://(www\.)?([^\.]+)\.com", RegexOptions.IgnoreCase); string[] test = exp.Split(htmlCode); but I'm not getting the results I want because I'm still working on the regular expression
sudo code for what I'm looking for is "