Switch regex method to named group for readability