title: Javascript regex weird matching without global flag
body: <p>I want to match a sequence of initials, the whole sequence, which the <strong>second</strong> regex in the following example does for me correctly. Why is it that I need the "global" flag? The first should also match ONLY the string in its entirety, right? (because of the <code>^</code> and the <code>$</code>)</p>
  
  <pre><code>abc = "A.B.C."
  abc.match(/^([A-Z]\.)+$/) // result: ["A.B.C.", "C."]
  abc.match(/^([A-Z]\.)+$/g) // result: ["A.B.C."]
  </code></pre>
  
  <p>thanks!</p>