c# split remove punctuation 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());