Examples
Examples
- Specify a set of unsigned numbers as a regular expression.
Examples: 1997, 19.97
Solution: Note use of regular definitions as intermediate
names that define regular subexpressions.
digit 0 | 1 | 2| 3| … | 9
digit digit digit* (often written as digit+) This is
the Kleene star. Means 1 or more digits.