sorted variable names. g_ prefix means capturing group and r_ prefix means backreference.