Regular expressions to finite automata converter