re
A: Literal[int] = (1 << 0)
ASCII: Literal[int] = (1 << 0)
DEBUG: Literal[int] = (1 << 1)
I: Literal[int] = (1 << 2)
IGNORECASE: Literal[int] = (1 << 2)
L: Literal[int] = (1 << 3)
LOCALE: Literal[int] = (1 << 3)
M: Literal[int] = (1 << 4)
MULTILINE: Literal[int] = (1 << 4)
S: Literal[int] = (1 << 5)
DOTALL: Literal[int] = (1 << 5)
X: Literal[int] = (1 << 6)
VERBOSE: Literal[int] = (1 << 6)
class Span
Fields
2
start
int
end
int
Special methods
1
seq_re_match(re: cobj, anchor: int, string: bytes, pos: int, endpos: int)
seq_re_match_one(re: cobj, anchor: int, string: bytes, pos: int, endpos: int)
seq_re_pattern_groups(re: cobj)
seq_re_group_name_to_index(re: cobj, name: bytes)
seq_re_group_index_to_name(re: cobj, index: int)
seq_re_pattern_error(re: cobj)
seq_re_escape(pattern: bytes)
seq_re_purge()
seq_re_compile(pattern: bytes, flags: int, is_bytes: bool)
class error
Fields
1
pattern
str
Constructors
1
Properties
1
compile(pattern: str, flags: int = 0)
compile(pattern: bytes, flags: int = 0)
search(pattern: str, string: str, flags: int = 0)
search(pattern: bytes, string: bytes, flags: int = 0)
match(pattern: str, string: str, flags: int = 0)
match(pattern: bytes, string: bytes, flags: int = 0)
fullmatch(pattern: str, string: str, flags: int = 0)
fullmatch(pattern: bytes, string: bytes, flags: int = 0)
finditer(pattern: str, string: str, flags: int = 0)
finditer(pattern: bytes, string: bytes, flags: int = 0)
findall(pattern: str, string: str, flags: int = 0)
findall(pattern: bytes, string: bytes, flags: int = 0)
split(pattern: str, string: str, maxsplit: int = 0, flags: int = 0)
split(pattern: bytes, string: bytes, maxsplit: int = 0, flags: int = 0)
sub(pattern: str, repl, string: str, count: int = 0, flags: int = 0)
sub(pattern: bytes, repl, string: bytes, count: int = 0, flags: int = 0)
subn(pattern: str, repl, string: str, count: int = 0, flags: int = 0)
subn(pattern: bytes, repl, string: bytes, count: int = 0, flags: int = 0)
escape(pattern: str)
escape(pattern: bytes)
purge()
class Match[T]
Fields
5
pos
int
endpos
int
re
Pattern[T]
string
T
T
type
Properties
2
Methods
7
Special methods
4
class Pattern[T]
Extends
re.Pattern ยท View complete class API โ
Properties
2
Methods
8
Special methods
1