New method for using match groups within regexes

Strict rules are necessary since impossible to get index of match group