title: REGEX : get webpage links
body: <p>I started learning REGEX 2 days ago , now id like to make a small application that read the source code of a webpage and get webpages like <a href="http://page.com" rel="nofollow">http://page.com</a> or <a href="http://www.page.com/sub/sub/sub?=value" rel="nofollow">http://www.page.com/sub/sub/sub?=value</a> , etc..... , stuff like that , anyway that`s the code i typed :</p>
  
  <pre><code>Regex r = new Regex("http://\\w");
  
          HttpWebRequest httpwebrequest = (HttpWebRequest)WebRequest.Create("http://maktoob.yahoo.com/?p=us");
          HttpWebResponse response = (HttpWebResponse)httpwebrequest.GetResponse();
  
          StreamReader sr = new StreamReader(response.GetResponseStream());
  
          string line;
  
          while ((line = sr.ReadLine()) != null)
          {
              Match m = r.Match(line);
              if (m.Success)
              {
                  Console.WriteLine("Match: " +m.Value);
              }
          }
          sr.Close();
          response.Close();
  </code></pre>
  
  <p>But the result is :</p>
  
  <p>Match: <a href="http://l">http://l</a>
  Match: <a href="http://w">http://w</a>
  Match: <a href="http://x">http://x</a>
  Match: <a href="http://l">http://l</a>
  Match: <a href="http://q" rel="nofollow">http://q</a></p>
  
  <p>It just get the first character after //
  When i looked at my pattern i said lol yeah my pattern is http://\w , so it will get the first character , but i wanted to know what should i add to my pattern for it to get the rest of the link ????</p>