Answers for "c# break file into words"

C#
0

c# break file into words

var text = "'Oh, you can't help that,' said the Cat: 'we're all mad here. I'm mad. You're mad.'";
var punctuation = text.Where(Char.IsPunctuation).Distinct().ToArray();
var words = text.Split().Select(x => x.Trim(punctuation));
Posted by: Guest on May-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language