Visibility of re.matchedGroups should be private.