I am trying to replace curly quotes:
str = \'“I don’t know what you mean by ‘glory,’ ” Alice said.\';
Using:
str.replace(/[
It doesn't work because you're trying to replace the ASCII apostrophe (or single-quote) and quote characters with the empty string, when what's actually in your source string aren't ASCII characters.
str.replace(/[“”‘’]/g,'');
works.