For the hope-to-have-an-answer-in-30-seconds part of this question, I\'m specifically looking for C#
But in the general case, what\'s the best way to strip punctuati
You can use the regex.replace method:
replace(YourString, RegularExpressionWithPunctuationMarks, Empty String)
Since this returns a string, your method will look something like this:
string s = Regex.Replace("Hello!?!?!?!", "[?!]", "");
You can replace "[?!]" with something more sophiticated if you want:
(\p{P})
This should find any punctuation.