Match

Standard library class re.Match View source
class Match
@tuple
class Match[T]
Fields 5
pos int
endpos int
re Pattern[T]
string T
T type
Properties 2
lastindex
@property
lastindex(self)
Defined in re
lastgroup
@property
lastgroup(self)
Defined in re
Methods 7
group
group(self, *args)
Defined in re
start
start(self, group = 0)
Defined in re
end
end(self, group = 0)
Defined in re
span
span(self, group = 0)
Defined in re
expand
expand(self, template: str)
Defined in re
groups
groups(self, default: Optional[str] = None)
Defined in re
groupdict
groupdict(self, default: Optional[str] = None)
Defined in re
Special methods 4
__getitem__
__getitem__(self, g)
Defined in re
__copy__
__copy__(self)
Defined in re
__deepcopy__
__deepcopy__(self)
Defined in re
__bool__
__bool__(self)
Defined in re