The shootout has been a part of the NHL for two decades now since it was implemented for the start of the 2005-06 season.
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 ...