add the ability to define a group number when using a regular expression