Reusing JavaScript RegExp Instance Fails Test and Exec When It Shouldn’t
If you have a JavaScript regular expression instance (doesn’t matter how you construct it) that you want to re-use so that you don’t have to recreate it for every use, beware, particularly if you use the…