title: Regular expression missing characters
body: <p>Below code works when the regular expression match with the string. What if one of the characters are not there, for example MONEY-STAT is missing?</p>
  
  <pre><code>string s = "MONEY-ID123456:MONEY-STAT43:MONEY-PAYetr-1232832938";
  Regex regex =
      new Regex(@"MONEY-ID(?&lt;moneyId&gt;.*?)\:MONEY-STAT(?&lt;moneyStat&gt;.*?)\:MONEY-PAYetr-(?&lt;moneyPaetr&gt;.*?)$");
  Match match = regex.Match(s);
  if (match.Success)
  {
      Console.WriteLine("Money ID: " + match.Groups["moneyId"].Value);
  
  
      Console.WriteLine("Money Stat: " + match.Groups["moneyStat"].Value);
      Console.WriteLine("Money Paetr: " + match.Groups["moneyPaetr"].Value);
  
  }
  
  Console.WriteLine("hit &lt;enter&gt;");
  Console.ReadLine();
  </code></pre>