Switch to named groups in regex.