Make permutations only take a regex