const regex = /[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/g; const result = WANTED_STRING.replace(regex, '');