Erik Corry (2012-03-23T17:26:07.000Z)
domenic at domenicdenicola.com (2014-03-21T16:59:48.262Z)
In perl the recommended version is ```perl text.replace(/([^a-zA-Z0-9])/g, "\\$1") ``` which is future-proof and safe and I think this also works for JS.
In perl the recommended version is ```perl text.replace(/([^a-zA-Z0-9])/g, "\\$1") ``` which is future-proof and safe and I think this also works for JS.