title: Javascript Regex and non-capturing parentheses
body: <p>I'm a bit rusty on my regexp and Javascript. I have the following string var:</p>
  
  <pre><code>var subject = "/admin.php?page=settings&amp;tabs_added[114787535263592]=1&amp;tabs_added[217770811582323]=1&amp;tabs_added[198738186831542]=1"
  </code></pre>
  
  <p>I want to extract <code>114787535263592</code>, <code>217770811582323</code> and <code>198738186831542</code>.</p>
  
  <p>I've tried to use non-capturing parenthesis <code>(?:)</code> :</p>
  
  <pre><code>var regexp = /(?:tabs_added[\[])(\d)+(?:[\]])/;
  var pageid = regexp.exec(subject);
  </code></pre>
  
  <p>But the result I get (<code>["tabs_added[114787535263592]", "2"]</code>) is not what I expected -- what am I doing wrong? Here's a jsFiddle: <a href="http://jsfiddle.net/KgpAw/" rel="nofollow">http://jsfiddle.net/KgpAw/</a></p>