title: Help with JavaScript regular expression
body: <p>I need to check if a string starts with the following: "+="</p>
  
  <p>I've tried </p>
  
  <pre><code>str.search("+="));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>str.search("\+\="));
  </code></pre>
  
  <p>but get</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Invalid regular
    expression: /+=/: Nothing to repeat</p>
  </blockquote>
  
  <p>Can you help me with this, and also recommend a good resource for JavaScript regular expressions?</p>