title: regex.match returns the regular expression as well as the result?
body: <p>I am writing a bit of javascript that grabs user ID's. It works, but the problem is the actual regular expression is being included in the results.</p>
  
  <p>My code it:</p>
  
  <pre><code>var regex = /profile\.php\?id=(\d*)/g;
  var matches = source.match(regex);
  </code></pre>
  
  <p>And it returns:</p>
  
  <pre><code>profile.php?id=1111,1111,profile.php?id=2222,2222,profile.php?id=33333,33333,
  </code></pre>
  
  <p>All I want is the user ID's. Am I doing something wrong?</p>