Input
Supported Syntax
- Literals:
a,b,0, etc. - Concatenation:
ab(a followed by b) - Alternation:
a|b(a or b) - Kleene star:
a*(zero or more a's) - Plus:
a+(one or more a's) - Optional:
a?(zero or one a) - Grouping:
(ab)*
Example Pairs
a*bandab*→ab(ab)*and(ba)*→ε(empty string)a+anda*b→ab(0|1)*0and0(0|1)*→0