|
POSIX 1003.2 regular expressions provide a powerful means for pattern
matching. Many Unix tools such as egrep, sed, or awk use a pattern matching
language that is similar to the one described here.
A regular expression is a character sequence that is an abbreviated
definition of a set of strings. A string is said to match a regular
expression if it is a member of the set described by the regular expression.
A regular expression is allowed to match anywhere within a string, unless
the regular expression is explicitly anchored to the beginning or end
of the string (by use of operators ^ and/or $).
|