title: Remove Parenthesis from String in Javascript
body: <pre><code>  x = x.replace(/[{()}]/g, '');
    y = y.replace(/[{()}]/g, '');
  
    x = x.replace(/[\[\]']+/g, '');
    y = y.replace(/[\[\]']+/g, '');
  </code></pre>
  
  <p>okay I understand that the first block removes the curly brackets, and the second block of code removes the regular brackets.  I want to remove parenthesis now.. can someone show me how?</p>
  
  <p>I've gotten the above code by just googling.. but I don't understand "how" they come up with this, can someone please explain?  thanks</p>