title: Python Regex Subgroup Capturing
body: <p>I'm trying to parse the following string:</p>
  
  <pre><code>constructor: function(some, parameters, here) {
  </code></pre>
  
  <p>With the following regex:</p>
  
  <pre><code>re.search("(\w*):\s*function\((?:(\w*)(?:,\s)*)*\)", line).groups()
  </code></pre>
  
  <p>And I'm getting:</p>
  
  <pre><code>('constructor', '')
  </code></pre>
  
  <p>But I was expecting something more like:</p>
  
  <pre><code>('constructor', 'some', 'parameters', 'here')
  </code></pre>
  
  <p>What am I missing?</p>