A formal language for specifying text search strings
A regular expression is an algebraic notation for characterizing a set of strings.
Regular expression search function will search through the corpus, returning all texts that match the pattern or the first match.
The corpus can be a single document or a collection.