reg to nfa