module documentation

Internal support module for sre
Class ​Pattern Undocumented
Class ​Sub​Pattern Undocumented
Class ​Tokenizer Undocumented
Class ​Verbose Undocumented
Function expand​_template Undocumented
Function fix​_flags Undocumented
Function parse Undocumented
Function parse​_template Undocumented
Constant ASCIILETTERS Undocumented
Constant CATEGORIES Undocumented
Constant DIGITS Undocumented
Constant ESCAPES Undocumented
Constant FLAGS Undocumented
Constant GLOBAL​_FLAGS Undocumented
Constant HEXDIGITS Undocumented
Constant OCTDIGITS Undocumented
Constant REPEAT​_CHARS Undocumented
Constant SPECIAL​_CHARS Undocumented
Constant WHITESPACE Undocumented
Function ​_class​_escape Undocumented
Function ​_escape Undocumented
Function ​_parse Undocumented
Function ​_parse​_flags Undocumented
Function ​_parse​_sub Undocumented
Function ​_parse​_sub​_cond Undocumented
Constant ​_REPEATCODES Undocumented
Constant ​_UNITCODES Undocumented
def expand_template(template, match):

Undocumented

def fix_flags(src, flags):

Undocumented

def parse(str, flags=0, pattern=None):

Undocumented

def parse_template(source, pattern):

Undocumented

ASCIILETTERS =

Undocumented

Value
frozenset('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
CATEGORIES =

Undocumented

Value
{'\\A': (AT, AT_BEGINNING_STRING),
 '\\b': (AT, AT_BOUNDARY),
 '\\B': (AT, AT_NON_BOUNDARY),
 '\\d': (IN, [(CATEGORY, CATEGORY_DIGIT)]),
 '\\D': (IN, [(CATEGORY, CATEGORY_NOT_DIGIT)]),
 '\\s': (IN, [(CATEGORY, CATEGORY_SPACE)]),
 '\\S': (IN, [(CATEGORY, CATEGORY_NOT_SPACE)]),
...
DIGITS =

Undocumented

Value
frozenset('0123456789')
ESCAPES =

Undocumented

Value
{'\\a': (LITERAL, ord('\x07')),
 '\\b': (LITERAL, ord('\x08')),
 '\\f': (LITERAL, ord('\f')),
 '\\n': (LITERAL, ord('\n')),
 '\\r': (LITERAL, ord('\r')),
 '\\t': (LITERAL, ord('\t')),
 '\\v': (LITERAL, ord('\v')),
...
FLAGS =

Undocumented

Value
{'i': SRE_FLAG_IGNORECASE,
 'L': SRE_FLAG_LOCALE,
 'm': SRE_FLAG_MULTILINE,
 's': SRE_FLAG_DOTALL,
 'x': SRE_FLAG_VERBOSE,
 'a': SRE_FLAG_ASCII,
 't': SRE_FLAG_TEMPLATE,
...
GLOBAL_FLAGS =

Undocumented

Value
(((SRE_FLAG_ASCII|SRE_FLAG_LOCALE)|SRE_FLAG_UNICODE)|SRE_FLAG_DEBUG)|SRE_FLAG_TEMPLATE
HEXDIGITS =

Undocumented

Value
frozenset('0123456789abcdefABCDEF')
OCTDIGITS =

Undocumented

Value
frozenset('01234567')
REPEAT_CHARS: str =

Undocumented

Value
'*+?{'
SPECIAL_CHARS: str =

Undocumented

Value
'.\\[{()*+?^$|'
WHITESPACE =

Undocumented

Value
frozenset(' \t\n\r\v\f')
def _class_escape(source, escape):

Undocumented

def _escape(source, escape, state):

Undocumented

def _parse(source, state, verbose, nested, first=False):

Undocumented

def _parse_flags(source, state, char):

Undocumented

def _parse_sub(source, state, verbose, nested):

Undocumented

def _parse_sub_cond(source, state, condgroup, verbose, nested):

Undocumented

_REPEATCODES =

Undocumented

Value
frozenset(set([MIN_REPEAT, MAX_REPEAT]))
_UNITCODES =

Undocumented

Value
frozenset(set([ANY, RANGE, IN, LITERAL, NOT_LITERAL, CATEGORY]))