How can I strip punctuation from a string?

new string(myCharCollection.Where(c => !char.IsPunctuation(c)).ToArray());

Leave a Comment