remove punctuation marks from string js
snippet in javascript

remove punctuation marks from string js

user580

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