A regular expression is a pattern that matches sets of related character strings. While there are patterns that regular expressions cannot match, they are the power tool most programmers turn to when they need to extract information from legacy text files.
*
, +
, and ?
for repetition.|
to match alternatives.