title: RegEx not finding all matches
body: <p>I have the following code (AS3 &amp; CS 5.5):</p>
  
  <pre><code>var regEx:RegExp = new RegExp(/(?:^|\s)(\#[^\s$]+)/g);
  var txt:String = "This #asd is a test tweet #hash1 test #hash2 test";
  
  var matches:Object = regEx.exec(txt);
  trace(matches);
  </code></pre>
  
  <p>The trace returns '#asd,#asd'. I really don't understand why it would to this, as in my RegEx testing application 'RegExhibit' it returns '#asd,#hash1,#hash2', which is what I'd expect. Can anyone shed any light on this please?</p>
  
  <p>Thanks in advance!</p>