ACAT.Extensions.Default.FunctionalAgents.LectureManager.LectureManagerMainForm.getWords C# (CSharp) Method

getWords() private method

Splits the specified string into words
private getWords ( String s ) : List
s String input string
return List
        private List<String> getWords(String s)
        {
            String[] words = Regex.Split(s, @"\W");

            var wordlist = new List<string>();
            foreach (var word in words)
            {
                if (!String.IsNullOrEmpty(word))
                {
                    wordlist.Add(word);
                }
            }

            return wordlist;
        }