Using regular expressions

A regular expression is a string that contains literal characters, pattern-matching characters and/or operators that define a set of one or more possible strings.

The stream editor uses a set of pattern-matching characters that is different from the shell pattern-matching characters, but the same as the line editor, ed.