Answers for "regex to replace all 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

c# remove all punctuation from string

string output = new string(OriginalString.Where(c => !char.IsPunctuation(c)).ToArray());
Posted by: Guest on August-24-2020

Code answers related to "regex to replace all punctuation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language