sre_compile
index
/usr/lib/python2.1/sre_compile.py

# Secret Labs' Regular Expression Engine
#
# convert template to internal format
#
# Copyright (c) 1997-2001 by Secret Labs AB.  All rights reserved.
#
# See the sre.py file for information on usage and redistribution.
#

 
Modules
            
_sre

 
Functions
            
_code(p, flags)
_compile(code, pattern, flags)
_compile_charset(charset, flags, code, fixup=None)
_compile_info(code, pattern, flags)
_optimize_charset(charset, fixup)
_simple(av)
compile(p, flags=0)

 
Data
             ANY = 'any'
ANY_ALL = 'any_all'
ASSERT = 'assert'
ASSERT_NOT = 'assert_not'
AT = 'at'
ATCODES = {'at_beginning': 0, 'at_beginning_line': 1, 'at_beginning_string': 2, 'at_boundary': 3, 'at_end': 5, 'at_end_line': 6, 'at_end_string': 7, 'at_loc_boundary': 8, 'at_loc_non_boundary': 9, 'at_non_boundary': 4, ...}
AT_BEGINNING = 'at_beginning'
AT_BEGINNING_LINE = 'at_beginning_line'
AT_BEGINNING_STRING = 'at_beginning_string'
AT_BOUNDARY = 'at_boundary'
AT_END = 'at_end'
AT_END_LINE = 'at_end_line'
AT_END_STRING = 'at_end_string'
AT_LOCALE = {'at_boundary': 'at_loc_boundary', 'at_non_boundary': 'at_loc_non_boundary'}
AT_LOC_BOUNDARY = 'at_loc_boundary'
AT_LOC_NON_BOUNDARY = 'at_loc_non_boundary'
AT_MULTILINE = {'at_beginning': 'at_beginning_line', 'at_end': 'at_end_line'}
AT_NON_BOUNDARY = 'at_non_boundary'
AT_UNICODE = {'at_boundary': 'at_uni_boundary', 'at_non_boundary': 'at_uni_non_boundary'}
AT_UNI_BOUNDARY = 'at_uni_boundary'
AT_UNI_NON_BOUNDARY = 'at_uni_non_boundary'
BRANCH = 'branch'
CALL = 'call'
CATEGORY = 'category'
CATEGORY_DIGIT = 'category_digit'
CATEGORY_LINEBREAK = 'category_linebreak'
CATEGORY_LOC_NOT_WORD = 'category_loc_not_word'
CATEGORY_LOC_WORD = 'category_loc_word'
CATEGORY_NOT_DIGIT = 'category_not_digit'
CATEGORY_NOT_LINEBREAK = 'category_not_linebreak'
CATEGORY_NOT_SPACE = 'category_not_space'
CATEGORY_NOT_WORD = 'category_not_word'
CATEGORY_SPACE = 'category_space'
CATEGORY_UNI_DIGIT = 'category_uni_digit'
CATEGORY_UNI_LINEBREAK = 'category_uni_linebreak'
CATEGORY_UNI_NOT_DIGIT = 'category_uni_not_digit'
CATEGORY_UNI_NOT_LINEBREAK = 'category_uni_not_linebreak'
CATEGORY_UNI_NOT_SPACE = 'category_uni_not_space'
CATEGORY_UNI_NOT_WORD = 'category_uni_not_word'
CATEGORY_UNI_SPACE = 'category_uni_space'
CATEGORY_UNI_WORD = 'category_uni_word'
CATEGORY_WORD = 'category_word'
CHARSET = 'charset'
CHCODES = {'category_digit': 0, 'category_linebreak': 6, 'category_loc_not_word': 9, 'category_loc_word': 8, 'category_not_digit': 1, 'category_not_linebreak': 7, 'category_not_space': 3, 'category_not_word': 5, 'category_space': 2, 'category_uni_digit': 10, ...}
CH_LOCALE = {'category_digit': 'category_digit', 'category_linebreak': 'category_linebreak', 'category_not_digit': 'category_not_digit', 'category_not_linebreak': 'category_not_linebreak', 'category_not_space': 'category_not_space', 'category_not_word': 'category_loc_not_word', 'category_space': 'category_space', 'category_word': 'category_loc_word'}
CH_UNICODE = {'category_digit': 'category_uni_digit', 'category_linebreak': 'category_uni_linebreak', 'category_not_digit': 'category_uni_not_digit', 'category_not_linebreak': 'category_uni_not_linebreak', 'category_not_space': 'category_uni_not_space', 'category_not_word': 'category_uni_not_word', 'category_space': 'category_uni_space', 'category_word': 'category_uni_word'}
FAILURE = 'failure'
GROUPREF = 'groupref'
GROUPREF_IGNORE = 'groupref_ignore'
IN = 'in'
INFO = 'info'
IN_IGNORE = 'in_ignore'
JUMP = 'jump'
LITERAL = 'literal'
LITERAL_IGNORE = 'literal_ignore'
MAGIC = 20010320
MARK = 'mark'
MAXCODE = 65535
MAXREPEAT = 65535
MAX_REPEAT = 'max_repeat'
MAX_UNTIL = 'max_until'
MIN_REPEAT = 'min_repeat'
MIN_UNTIL = 'min_until'
NEGATE = 'negate'
NOT_LITERAL = 'not_literal'
NOT_LITERAL_IGNORE = 'not_literal_ignore'
OPCODES = {'any': 2, 'any_all': 3, 'assert': 4, 'assert_not': 5, 'at': 6, 'branch': 7, 'call': 8, 'category': 9, 'charset': 10, 'failure': 0, ...}
OP_IGNORE = {'groupref': 'groupref_ignore', 'in': 'in_ignore', 'literal': 'literal_ignore', 'not_literal': 'not_literal_ignore'}
RANGE = 'range'
REPEAT = 'repeat'
REPEAT_ONE = 'repeat_one'
SRE_FLAG_DEBUG = 128
SRE_FLAG_DOTALL = 16
SRE_FLAG_IGNORECASE = 2
SRE_FLAG_LOCALE = 4
SRE_FLAG_MULTILINE = 8
SRE_FLAG_TEMPLATE = 1
SRE_FLAG_UNICODE = 32
SRE_FLAG_VERBOSE = 64
SRE_INFO_CHARSET = 4
SRE_INFO_LITERAL = 2
SRE_INFO_PREFIX = 1
STRING_TYPES = [<type 'string'>, <type 'unicode'>]
SUBPATTERN = 'subpattern'
SUCCESS = 'success'
__file__ = '/usr/lib/python2.1/sre_compile.pyc'
__name__ = 'sre_compile'