Page 1
Wink Notes
B.Tech CSE — 4th Semester
Theory of Automata and Formal Languages
— Unit - 2 —
1. Introduction to Regular Expressions (RE)
A DFA is a machine representation of a language. A Regular Expression (RE) is a purely algebraic, declarative representation of that exact same language. It provides a simple string formula to generate all valid strings in the language.
REs are extensively used in modern software engineering (grep, text editors, input validation), though software regex engines add non-theoretical features.
1.1 The Base Cases
Let be a given alphabet.
- (Empty Set) is a regular expression representing the language containing no strings.
- (Epsilon) is a regular expression representing the language containing only the empty string .
- For any symbol , the symbol '' is a regular expression representing the language .