SyntaxFix
Write A Post
Hire A Developer
Questions
You don't need to escape it inside. You can use the | character to delimit searches.
|
"\"foo\"\'bar\'".replace(/("|')/g, "")