title: RegEx to match stuff between parentheses
body: <p>I'm having a tough time getting this to work. I have a string like:</p>
  
  <pre><code>something/([0-9])/([a-z])
  </code></pre>
  
  <p>And I need regex or a method of getting each match between the parentheses and return an array of matches like:</p>
  
  <pre><code>[
    [0-9],
    [a-z]
  ]
  </code></pre>
  
  <p>The regex I'm using is <code>/\((.+)\)/</code> which does seem to match the right thing <strong>if</strong> there is only <strong>one</strong> set of parenthesis.</p>
  
  <p>How can I get an array like above using any RegExp method in JavaScript? I need to return just that array because the <em>returned</em> items in the array will be looped through to create a URL routing scheme.</p>