Practical Programming Techniques: String Processing with Regular Expressions

Robert D. Cameron
March 11, 2002

Regular Expression Facilities

Regular expressions are a grammatical notation for defining string syntax, but without general recursion. See previous notes on Nonrecursive Syntax: The Regular Expression Metalanguage.

Regular expressions are widely supported in modern programming languages and tools.

Typical Regular Expression Syntax

Here we summarize the main features common to most regular expression facilities.

These descriptions of regular expression features are all written in terms of the "pattern matching" interpretation of regular expressions. However, it is still the case that Unix/Perl regular expressions can be understood as specifying sets of strings and the matching operation is just checking to see whether a particular string is in the set specified by the regular expression.