In Python 3.7, re.Match
is the type of the objects returned by re.match
. See bpo30397.
In previous versions, re.Match
is not defined. If you wanted a reference to the type of match objects you could get it with
Match = type(re.match('',''))
You can use dir
on either the Match
type or on a match object to list its attributes and methods.