title: Finding Plus Sign in Regular Expression
body: <pre><code>var string = 'abcd+1';
  var pattern = 'd+1'
  var reg = new RegExp(pattern,'');
  alert(string.search(reg));
  </code></pre>
  
  <p>I found out last night that if you try and find a plus sign in a string of text with a Javascript regular expression, it fails.  It will not find that pattern, even though it exists in that string.  This has to be because of a special character.  What's the best way to find a plus sign in a piece of text?  Also, what other characters will this fail on?</p>