accept that @mystor was right -- regex is already a state machine