Closed evandrocoan closed 5 years ago
Realizing that I think I see what you mean -- if you'd selected text that is parsed into new RegExp()
you wouldn't want those characters used as special tokens, just plain text
Got it from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter Looks good to me, thank you
I'm wondering if this is an issue with the number of
\
being used, I noticed I had to use something ridiculous, like 3 or 4 backslashes What does replacing with'\\$&'
do?