title: Regex to escape the parentheses
body: <p>I tried different ways to escape the parentheses using regex in JavaScript but I still can't make it work.</p>
  
  <p>This is the string:</p>
  
  <pre><code>"abc(blah (blah) blah()...).def(blah() (blah).. () ...)"
  </code></pre>
  
  <p>I want this to be detected:</p>
  
  <pre><code>abc().def() 
  </code></pre>
  
  <p>Using this code, it returns false. </p>
  
  <pre><code> str.match(/abc\([^)]*\)\.def\([^)]*\)/i);
  </code></pre>
  
  <p>Can you please tell me why my regex is not working?</p>