Use named groups with the re stdlib and access them via groupdict().
Use named capture groups with the /g flag and matchAll.
Compile a regex and pull every match out of a string.
Compile a regex and extract a named capture group.
Use named captures and MatchData to extract fields.
Parse a date string with named capture groups.