Automata to extract dates from the input text