c# remove punctuation regex code example
Example: c# remove all punctuation from string
string output = new string(OriginalString.Where(c => !char.IsPunctuation(c)).ToArray());
string output = new string(OriginalString.Where(c => !char.IsPunctuation(c)).ToArray());