Regex to NFA Guide
Learn how to create regular expressions and visualize them as NFAsQuick Start: Try entering a*b
to see a simple NFA, then test it with strings like aaab
or b
.
Basic Operators
|
Alternation - matches either option
a|b
*
Zero or more repetitions
a*
+
One or more repetitions
a+
?
Optional - zero or one
a?
()
Grouping expressions
(ab)*
Special Characters
\e
Explicit epsilon transition
a\eb
\
Escape metacharacters
\*\+
Try these examples:
a(b|c)*
(x|y)+z?
a\*b
\e