How can I replace a plus sign in JavaScript?
escaping, javascript, regex
Solution
myString = myString.replace(/\+/g, "");
Problem
I need to make a replace of a plus sign in a javascript string. there might be multiple occurrence of the plus sign so I did this up until now: ``` myString= myString.replace(/+/g, "");# ``` This is however breaking up my javascript and causing glitches. How do you escape a '+' sign in a regular expression?