simple regex match example with nfa construction
minor fix