title: Javascript global match with capturing groups
body: <p>Can anyone tells me why does't the second snippet  catchs the 'groups' when use <code>g</code> flag ?     </p>
  
  <pre><code>  "123".match(/(\d{1})(\d{1})/)    // returns  ["12", "1", "2"]
    "123".match(/(\d{1})(\d{1})/g)   // returns ["12"]   (where's 1 and 2 ?)
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log("123".match(/(\d{1})(\d{1})/))    // returns  ["12", "1", "2"]
  
  console.log("123".match(/(\d{1})(\d{1})/g))   // returns ["12"]   (where's 1 and 2 ?)</code></pre>
  </div>
  </div>
  </p>