Pattern

Standard library class re.Pattern View source
class Pattern
@tuple
class Pattern[T]
Fields 3
pattern T
flags int
T type
Properties 2
groups
@property
groups(self)
Added by re
groupindex
@property
groupindex(self)
Added by re
Methods 8
match
match(self, string: T, pos: Optional[int] = None, endpos: Optional[int] = None)
Added by re
fullmatch
fullmatch(self, string: T, pos: Optional[int] = None, endpos: Optional[int] = None)
Added by re
finditer
finditer(self, string: T, pos: Optional[int] = None, endpos: Optional[int] = None)
Added by re
findall
findall(self, string: T, pos: Optional[int] = None, endpos: Optional[int] = None)
Added by re
split
split(self, string: T, maxsplit: int = 0)
Added by re
subn
subn(self, repl, string: T, count: int = 0)
Added by re
sub
sub(self, repl, string: T, count: int = 0)
Added by re
Special methods 1
__bool__
__bool__(self)
Added by re