Named Groups with Regular Expressions Groups are used in Python in order to reference regular expression matches. By default, groups, without names, are referenced according to numerical order starting with 1 . Let's say we have a regular expression that has 3 subexpressions. A user enters in his birthdate, according to the month, day, and year. Let's say the user must first enter the month, then the day, and then the year. 16-12-2021
[email protected] 22