ε-NFA · Regular
Float regex, compiled
The regex [+-]?d+(.d+)? as an ε-NFA, where d stands for any digit — what a regex engine actually builds. ε-jumps make the sign optional; the fraction needs a digit after the dot.
The author’s examples, run
dd → accept+ddd → acceptdd.dd → accept-d.d → acceptd. → reject.dd → reject