Regular expression playground
Four views of one expression, kept in step. Change the expression and the parse tree, the Thompson ε-NFA, the minimal DFA and the list of accepted strings all move together — which is the quickest way to see what a change to the expression actually did.
Try:
Parse tree
Thompson ε-NFA
Minimal DFA
The language
- ε
- 0
- 1
- 00
- 01
- 10
- 11
- 000
- 001
- 010
- 011
- 100
- 101
- 110
- 111
- 0000
- 0001
- 0010
- 0011
- 0100
- 0101
- 0110
- 0111
- 1000
- 1001
- 1010
- 1011
- 1100
- 1101
- 1110
- 1111