local vs global regex performance in js functions (v2) (version: 0)
Benchmark.js
Do regular expressions become faster in javascript, when we put them in the global scope, or doesn't it matter when we declare them directly in a function?
Comparing performance of:regex directly in function vs regex in global scope