I\'m trying to grab the first 3 words of a string (E-mail Subject)in C#, has anyone done this before? thanks for your help
List<string> myWordsList = myWords.Split(' ').Take(3).ToList();
string result = string.Join(" ", str.Split().Take(3)); (Edited)
string result = string.Join(" ", str.Split().Take(3));