Creating groups of regular expressions