Handle "pat1|pat2" patterns