AJ ONeal (2012-06-15T15:40:57.000Z)
forbes at lindesay.co.uk (2014-03-24T17:50:37.115Z)
YES. PLEASE put this in! http://stackoverflow.com/a/6969486/151312 ```js function escapeRegExp(str) { return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); } ``` I'm doing my best to reply to every single question that pops up on stackoverflow and point them to this answer... but there are just too many wrong answers out there.