How to remove all instances of 'a' and 'c' in a string in Javascript? : <p>How do I remove all instances of two different letters in a string?</p>

<p>For example, I want to remove 'a' and 'c' from 'abcabc' so that it becomes 'bb'.</p>

<p>I know I can't do <code>'abcabc'.replace(/a/g, '').replace(/c/g, '')</code> but is there another regEx I can use so that I don't have to chain the <code>replace</code> function?</p>

<p>Thanks!</p>
