Application Of Regular Expression In Automata