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.
My code it:
var regex = /profile\.php\?id=(\d*)/g;
var matches = source.match(regex);
And it returns:
profile.php?id=1111,1111,profile.php?id=2222,2222,profile.php?id=33333,33333,
All I want is the user ID's. Am I doing something wrong?