These are Strings used to define search patterns of strings from a regex alphabet

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

  • Commutivity of union ( )
  • Associative of union ()
  • Associative of concatenation ()
  • Left Distributive ( )
  • Right Distributive ( )
  • Identity for union
  • Identity for concatenation
  • Annihilator for concatenation
  • Idempotence of Kleene Star

Identities