MatcherFactoryN for regex withGroups

Add methods to MatcherFactoryN generator for regex withGroups syntax