Definition

A sequence of characters that defines a search pattern

is a regular expression if is:

  1. for some in the alphabet
  2. , where and are regular expressions
  3. where and are regular expressions
  4. where is a regular expression