ID EN
Regular Expression

lastgroup

Python 3.11

The name of the last matched capturing group, or None if the group didn’t have a name, or if no group was matched at all.

Syntax

PYTHON
Match.lastgroup