Regular expression matching [017C]

We have seen the syntax of regular expressions in both concrete and abstract form. What about semantics, i.e. what do regular expressions actually do? The meaning of a given regular expression over an alphabet \Sigma is a matching predicate on strings over \Sigma that says when a given string is matched by the regular expression. In this course, we are particularly interested in the class of formal languages that can be recognised by regular expressions, and later on we will develop tools that allow us to show that some formal languages are too complex to be recognised by regular expressions. In the meanwhile, we will first explain how matching works.

We can also obtain a version of the matching relation between strings over \Sigma and concrete regular expressions by relational composition with the (transpose of) the parsing relation. Alternatively, we can simply write the concrete syntax as a mere notation (to be eliminated by the reader immediately) for the abstract syntax. In fact, that is what we will do in the future.

Context

Lecture 21: regular expressions and pattern matching [0174]

Backlinks

Lecture 24: the pumping lemma [018I]

Corollary. Decidability of regular expression matching [018E]

Related

Definition. The matching relation for regular expressions [017D]

Example. Precedence parsing for regular expressions [017B]

Regular expressions [0178]

Definition. Regular expressions (concrete syntax) [0176]

Definition. Formal language [016M]

Definition. String over an alphabet [016I]

Definition. Alphabet [016H]

Definition. Relational composite [00IN]