Last Updated: February 25, 2016
·
177
· gifthlong

Sanitize input to be treated as a literal

`javascript

dirtystring.replace(/([.*+?^${}()|[]\/\])/g, "\$1");