title: What is the regex pattern for named capturing groups in .NET?
body: <p>I'm struggling with a regex pattern that will pull out text from a string into named groups.</p>
  
  <p>A (somewhat arbitrary) example will best explain what I'm trying to achieve.</p>
  
  <pre><code>string input =
      "Mary Anne has been to 949 bingo games. The last was on Tue 24/04/2012. She won with the Numbers: 4, 6, 11, 16, 19, 27, 45";
  
  string pattern =
      @"(?&lt;Person&gt;\w+?) has been to (?&lt;NumberOfGames&gt;\d+?) bingo games. The last was on (?&lt;Day&gt;...?) (?&lt;Date&gt;...?). She won with the Numbers: (?&lt;Numbers&gt;...?)";
  
  Regex regex = new Regex(pattern);
  var match = regex.Match(input);
  
  string person = match.Groups["Person"].Value;
  string noOfGames = match.Groups["NumberOfGames"].Value;
  string day = match.Groups["Day"].Value;
  string date = match.Groups["Date"].Value;
  string numbers = match.Groups["Numbers"].Value;
  </code></pre>
  
  <p>I can't seem to get the regex pattern to work, but i think the above explains it well enough. Essentially i need to get the person name, the number of games etc.</p>
  
  <p>Can anyone solve this and explain the actual regex pattern they worked out?</p>