title: Regex to get the link in href. [asp.net]
body: <p>hi i got problems to get my regex to work. im working with C# asp.net
  i will post the code i use now and what i cant get to work is the second regex to get whatever is in the href="LINK"</p>
  
  <p>thx in advance</p>
  
  <pre><code>var textBody = "lorem ipsum... &lt;a href='http://www.link.com'&gt;link&lt;/a&gt;";
  
  
          var urlTagPattern = new Regex(@"&lt;a.*?href=[""'](?&lt;url&gt;.*?)[""'].*?&gt;(?&lt;name&gt;.*?)&lt;/a&gt;", RegexOptions.IgnoreCase);
  
  
  
          //THIS IS THE REGEX
          var hrefPattern = new Regex(@"HREF={:q}\&gt;", RegexOptions.IgnoreCase);
  
  
  
  
          var urls = urlTagPattern.Matches(textBody);
  
  
          foreach (Match url in urls)
          {
  
              var hrefs = hrefPattern.Match(url.ToString());
  
  
              litStatus.Text = hrefs.ToString();
          }
  </code></pre>