Regex Speed test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Other
'(Boxing Bag@bag.jpg@To punch and kick)(Wallet@wallet.jpg@To keep money in)'.match(/[^()]+/g);
ready
Mine
var str = '(Boxing Bag@bag.jpg@To punch and kick)(Wallet@wallet.jpg@To keep money in)';
var regex = new RegExp('\\((.*?)\\)', 'g');
var match, matches = [];
while(match = regex.exec(str))
    matches.push(match[1]);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.