Answers for "javascript split remove punctuation"

3

remove punctuation marks from string js

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

how to split by words and punctuation in javascript

string.split(/\s*\b\s*/)
Posted by: Guest on December-09-2020

Code answers related to "javascript split remove punctuation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language