How do I remove all instances of two different letters in a string?
For example, I want to remove 'a' and 'c' from 'abcabc' so that it becomes 'bb'.
I know I can't do 'abcabc'.replace(/a/g, '').replace(/c/g, '')
but is there another regEx I can use so that I don't have to chain the replace
function?
Thanks!