The goal of this vignette is to provide some basic examples that solve common regular expression tasks. The print and grepl calls are attached at the end of each chain to show the regular expression that is constructed and what it matches.

Contains two words

Between two words

Starts with word

Ends with word