Use regular expressions with the grep, regexp and sub functions in the base package of the R Project| www.regular-expressions.info
In regular expressions, \b anchors the regex at a word boundary or the position between a word and a non-word character, or vice versa.| www.regular-expressions.info
Test for a match, or test for failure, without actually consuming any characters.| www.regular-expressions.info