title: How do I access named capturing groups in a .NET Regex?
body: <p>I'm having a hard time finding a good resource that explains how to use Named Capturing Groups in C#.  This is the code that I have so far:</p>
  
  <pre><code>string page = Encoding.ASCII.GetString(bytePage);
  Regex qariRegex = new Regex("&lt;td&gt;&lt;a href=\"(?&lt;link&gt;.*?)\"&gt;(?&lt;name&gt;.*?)&lt;/a&gt;&lt;/td&gt;");
  MatchCollection mc = qariRegex.Matches(page);
  CaptureCollection cc = mc[0].Captures;
  MessageBox.Show(cc[0].ToString());
  </code></pre>
  
  <p>However this always just shows the full line:</p>
  
  <pre><code>&lt;td&gt;&lt;a href="/path/to/file"&gt;Name of File&lt;/a&gt;&lt;/td&gt; 
  </code></pre>
  
  <p>I have experimented with several other "methods" that I've found on various websites but I keep getting the same result.</p>
  
  <p>How can I access the named capturing groups that are specified in my regex?</p>