title: javascript RegEX with round brackets in pattern
body: <p>The below script is returning null. It is returning correctly if I remove round brackets in str and patt1 for the text spot_Northeast(300)_comment</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var str="0000CentralGasEform2,0000CentralGasEformNew,spot_Northeast(300)_comment"; 
  var patt1=/\bspot_Northeast(300)_comment/g;
  document.write(str.match(patt1));
  &lt;/script&gt;
  </code></pre>
  
  <hr>
  
  <p>In my application, the value in str is taken from the cookies and the value in patt1 is dynamic based on the window opened </p>
  
  <pre><code>regExp = new RegExp('\\b'+FormOpen+'\\b', 'g'); 
  </code></pre>
  
  <p>Here FormOpen is dynamic. Then I replace the match in cookie </p>
  
  <pre><code>var temp=CookieList.replace(regExp,""); 
  </code></pre>
  
  <p>Is there a way to tell RegEX that () is normal text instead of hardcoding?</p>