....................
Printable View
....................
The String class has many methods that would help you do to this.
One tricky bit is recognizing a if the match is with a word vs a substring. You'd need to define what characters delimit a word.