Edit a file in place with sed -i, replacing matches globally.
Tag: Regex
Use named groups with the re stdlib and access them via groupdict().
Use named capture groups with the /g flag and matchAll.
Use preg_match with named groups to parse structured text.
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.