Automaton for mixed complex patterns