First match with a DFA