Regular languages
Each regular expression over some alphabet represents a language over $S$.
The following are two different things:
- A regular expression . A string or finite pattern.
- The language represents: . A set of words over , words following the pattern.
Regular Language
A regular language is any language that can be representeed by a regular expression. A language is regular if for some regular expression .
Link to original
To compare:
- A regular expression is a pattern.
- A regular language is a set of words following a pattern.
Recursive description
The recursive description of the language represented by the regular expression is:
- Basis Case:
- Recursive Step: If and are regular expression, then:
- all words that belong either to or to .
- any words from followed by any word from
- any word from followed by any word from … (the number of iterations is arbitrary, possibly none)