I want to replace all + symbols in a JavaScript String with a space. Based on this thread Fastest method to replace all instances of a character in a string and this thread How to replace all dots in a string using JavaScript I do:
soql = soql.replace(/+/g, " ");
But that gives:
SyntaxError: invalid quantifier
Any ideas how I do it?