Regular expression to deterministic finite automata converter