GFM refactor: Simplify the regex pattern
Makes use of 'extended' patterns to add comments to the groups, and also reduces the total number of groups to just those that are used.
Makes use of 'extended' patterns to add comments to the groups, and also reduces the total number of groups to just those that are used.