remove comma and punctuation from sentence regex javascript code example
Example: remove punctuation marks from string js
const regex = /[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/g;
const result = WANTED_STRING.replace(regex, '');
const regex = /[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/g;
const result = WANTED_STRING.replace(regex, '');