A drop-in replacement for new RegExp() with types
A drop-in replacement for 'new RegExp()' with types