Код: Выделить всё
var sentence = "As a result , he failed the test .";
var pattern = new Regex();
var outcome = pattern.Replace(sentence, String.Empty);
В результате он провалил тест.
Подробнее здесь: https://stackoverflow.com/questions/297 ... with-regex