Replace Both Double and Single Quotes in Javascript String July 13, 2023 by Tarik You don’t escape quotes in regular expressions this.Vals.replace(/["']/g, "")