These are Strings used to define search patterns of strings.

Notations

  • - empty string representing empty set or
  • any symbol '' from the input alphabet representing
  • Union representing
  • Concatenation which is valid if and only if
  • Kleene Star zero or more occurrences of

Alphabet Definition

The alphabet includes: . Assumes the alphabet you match does not include any of these symbols.

Definition

Define the set of regexes of Let be the smallest set such that: Basis:

  • Note that is a symbol, not the set
  • Note that is a symbol, not the string Induction step: if , then

Concepts

Properties