The demo uses a regular expression (using .Net class called Regex) to check for repeated occurrences of words in a string.