title: Regex question about parsing method signature
body: <p>I'm trying to parse a method signature that is in this format:</p>
  
  <pre><code>'function_name(foo=&lt;str&gt;, bar=&lt;array&gt;)'
  </code></pre>
  
  <p>From this, I want the name of the method, and each argument and it's type. Obviously I don't want the <code>&lt;</code>, <code>&gt;</code> characters, etc. The number of parameters will be variable.</p>
  
  <p>My question is: How is it possible to get all the parameters when using this regex? I'm using Python, but I'm just looking for a general idea. Do I need named groups and, if so, how can I use them to capture multiple parameters, each with it's type, all in one regex?</p>