tranismit regex to dfa