next up previous contents
Next: Non-Deterministic Finite-State Automata Up: REGULAR LANGUAGES Previous: REGULAR LANGUAGES   Contents

Regular Expressions

Regular expressions are used to define patterns of characters; they are used in UNIX tools such as awk, grep, vi and, of course, lex.

A regular expression is just a form of notation, used for describing sets of words. For any given set of characters $\Sigma$, a regular expression over $\Sigma$ is defined by:

Brackets may be used in a regular expression to enforce precedence or increase clarity.


next up previous contents
Next: Non-Deterministic Finite-State Automata Up: REGULAR LANGUAGES Previous: REGULAR LANGUAGES   Contents
James Power 2002-11-29