regex replace all single quotes to '' code example Example: js replace quotes mystring = mystring.replace(/["']/g, "");