Last Updated: February 25, 2016
·
195
· gifthlong

Sanitize input to be treated as a literal

`javascript

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