module documentation

Internal support module for sre

Class Pattern Undocumented
Class SubPattern Undocumented
Class Tokenizer Undocumented
Exception 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): (source)

Undocumented

def fix_flags(src, flags): (source)

Undocumented

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

Undocumented

def parse_template(source, pattern): (source)

Undocumented

ASCIILETTERS = (source)

Undocumented

Value
frozenset('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
CATEGORIES = (source)

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)]),
...

Undocumented

Value
frozenset('0123456789')

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')),
...
HEXDIGITS = (source)

Undocumented

Value
frozenset('0123456789abcdefABCDEF')
OCTDIGITS = (source)

Undocumented

Value
frozenset('01234567')
REPEAT_CHARS: str = (source)

Undocumented

Value
'*+?{'
SPECIAL_CHARS: str = (source)

Undocumented

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

Undocumented

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

Undocumented

def _escape(source, escape, state): (source)

Undocumented

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

Undocumented

def _parse_flags(source, state, char): (source)

Undocumented

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

Undocumented

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

Undocumented

_REPEATCODES = (source)

Undocumented

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

Undocumented

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