title: C# regex groups trouble
body: <p>I am sorry for may be stupid question, but I cannot solve little problem and cannot find the same question in google. So, I thought to write here. I need to parse the same strings:</p>
  
  <pre><code>string line = "HELLO MYNAME IS1 = {P 111.11, O -222.22, L 333.33, L -444.44, Y 555.55}";
  </code></pre>
  
  <p>My code for that is: </p>
  
  <pre><code>string line = "HELLO MYNAME IS1 = {P 111.11, O -222.22, L 333.33, L -444.44, Y 555.55}";
  Regex re = new Regex(@"^HELLO MYNAME ([A-Za-z0-9]+) = {([A-Z]\s[+-]?[0-9]+.[0-9]+,?\s?)+}");
  MatchCollection matchCollection = re.Matches(line);
  foreach(Match m in matchCollection)
  {
      Console.WriteLine("Match: ");
      foreach(Group gr in m.Groups)
      {
          Console.WriteLine($"No {gr.Index} Value: {gr.Value}");
      }
   }
  </code></pre>
  
  <p>But I cannot understand why output looks like this:</p>
  
  <p>Match:</p>
  
  <p>No 0 Value: HELLO MY NAME IS1 = {P 111.11, O -222.22, L 333.33, L -444.44, Y 555.55}
  No 13 Value: IS1
  No 62 Value: Y  555.55</p>
  
  <p>I am sorry again, can you explain to me why only the last group goes to result.</p>