RegEx → NFA / DFA

Thompson's Construction
Parse a regular expression · visualise the ε-NFA · simulate input strings
Regular Expression
/
Syntax Guide
|
Union (alternation)
*
Kleene star (0+)
+
One or more (1+)
?
Optional (0 or 1)
( )
Grouping
ε
Empty string
Concatenation is implicit. Use ε for empty string. Supported alphabet: a–z, 0–9
+
Enter a regular expression to begin
The automaton will be visualised here using Thompson's construction algorithm
Start state
Accept state
Build an automaton first.
Build an automaton first.