Fix the benchmarking script for v8.

The script was incorrectly using 'regexp.exec()', which only searches for the
first match, whereas 'string.match(regexp)' finds all matches.