title: Regex matches repeated group in parent group
body: <p>I tried to match multiple group which under another group.</p>
  
  <p><strong>Input</strong></p>
  
  <pre><code>182507 { 6661(T) }, 182514 { 5551(T), 5553(T), 5552(T) }
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>Full match: 182507 { 6661(T) }
  Group 1: 182507
  Group 2: 6661(T)
  
  Full match: 182514 { 5551(T), 5553(T), 5552(T) }
  Group 1: 182514
  Group 2: 5551(T)
  Group 3: 5553(T)
  Group 4: 5552(T)
  </code></pre>
  
  <p><em>I tried the pattern but not seems to work that I excepted</em></p>
  
  <pre><code>/([0-9]+)\s*\{\s*(\s*[0-9]+\s*\(\s*[A-Z]+\s*\))\s*?(?:,*\s*([0-9]+\s*\(\s*[A-Z]+\s*\))\s*)*+\s*\}+/
  </code></pre>