working regex -> minimial dfa with CLI input