I am trying to figure out if in C# if I have converted a webpage contents into a string, what is the best way to search for extensions. I am just looking to extract URLs within a webpage that ends in .html or .xhtml or edu. In which I don't care what the beginning looks like, which is better EndWith or Regex for finding this.
so if my input looked like this
string str = {var a,b=window.location.href.match(//webhp\?[^#]tune=[^#]/);if(a=b&&b.length>0?"http://www.google.com/logos/2011/lespaul.html"+b[
and i want to pull out http://www.google.com/logos/2011/lespaul.html store that into an array