title: Replacing all symbols in a javascript string
body: <p>Hi all ia m trying to replace all characters of "+" in a string by using the code below:</p>
  
  <pre><code>var findValue = "+";
  var re = new RegExp(findValue, 'g');
  searchValueParam = searchValueParam.replace(re, " ");
  </code></pre>
  
  <p>However i recieve this exception:</p>
  
  <pre><code>SyntaxError: Invalid regular expression: nothing to repeat
  </code></pre>
  
  <p>previously i applied just searchValueParam = searchValueParam.replace("+", " "); but that only replaces the first occurrence, not all.</p>
  
  <p>Any suggestions?</p>