title: firefox 3.6.20 regex giving inconsistent results
body: <p>I've been debugging this one application for a while and it led me to this test case. When I run it in firefox 3.6.x it only works 50% of the time.</p>
  
  <pre><code>var success = 0;
  
  var pat = /(\d{2})\/(\d{2})\/(\d{4})\s(\d{2}):(\d{2})\s(am|pm)/g;
  var date = "08/01/2011 12:00 am";
  
  for(var i=0;i&lt;100;i++) if(pat.exec(date)) success++;
  alert("success: " + success + " failed: " + (100 - success));
  </code></pre>
  
  <p>it alerts <code>success: 50 failed: 50</code></p>
  
  <p>what's going on here?</p>