I am attempting to use the replace() function on a large amount of text, to filter out "[","{","(", and many other special characters. I initially attempted to just say:
replace(/"{"/g," ")
But this did not work, I tried a series of variations like this, using:
"/{/"g
or
"/{/g"
Yet, none of them worked. I have also tried attaching the first replace parameter to a variable as they do in the Mozilla tutorial.
var replacingStuff = /{/g;
str.replace(replacingStuff," ");
Does anyone have any ideas on how to fix this problem?