Regex to NFA Guide

Learn how to create regular expressions and visualize them as NFAs

Quick Start: Try entering a*b to see a simple NFA, then test it with strings like aaab or b.

Basic Operators

|
Alternation - matches either optiona|b
*
Zero or more repetitionsa*
+
One or more repetitionsa+
?
Optional - zero or onea?
()
Grouping expressions(ab)*

Special Characters

\e
Explicit epsilon transitiona\eb
\
Escape metacharacters\*\+
Try these examples:
a(b|c)*
(x|y)+z?
a\*b
\e
© 2025 Regex to NFA Visualizer. A CMSC 141 Project.Built by Escarlan, Arañas, Betonio and Va-ay