Regular Expressions
This note deals with regular expressions recognition of formal languages. For practical use of regular expressions in programming, see regex.
Definition
Regular expressions are another way of specifying the same languages that can be specified by DFAs and NFAs. A regular expression over an alphabet
Regular Expression |
Language |
---|---|
Examples
strings containing aa as a substring: