title: How to combine regular expressions in javascript?
body: <p>This might be easy for those who play with regular expressions.</p>
  
  <pre><code>str = "Here is 'sample' test";
  str = str .replace(new RegExp('"', 'g'), '');
  str = str .replace(new RegExp("'", 'g'), '');
  </code></pre>
  
  <p>How to combine 2nd and 3rd line, I want to combine regular expressions <code>new RegExp('"', 'g')</code> and <code>new RegExp("'", 'g')</code> into one regular expression, this will make it in one line. Thanks in advance.</p>