Apple has released Safari Technology Preview 247, the latest version of its developer preview web browser. The preview ...
This is now available natively as RegExp.escape(). You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character ...