title: Replace all plus signs (+) with space in a string
body: <p>I'm not sure how to escape '+' in regex. Plus can come multiple times in <code>i</code> so we need to replace all <code>+</code> in the string. Here's what I have:</p>
  
  <pre><code>i.replace(new RegExp("+","g"),' ').replace(new RegExp("selectbasic=","g"),'').split('&amp;');
  </code></pre>
  
  <p>But this gives me this error:</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Invalid regular expression: /+/: Nothing to repeat </p>
  </blockquote>