Get ready to convert a regex to NFA and DFA, NFA to DFA, and optimize DFA