Matching lists/groups/ranges. Forming proper - but inefficient - automata.