sre
index
/usr/lib/python1.6/sre.py

# Secret Labs' Regular Expression Engine
#
# re-compatible interface for the sre matching engine
#
# Copyright (c) 1998-2000 by Secret Labs AB.  All rights reserved.
#
# This version of the SRE library can be redistributed under CNRI's
# Python 1.6 license.  For any other use, please contact Secret Labs
# AB (info@pythonware.com).
#
# Portions of this engine have been developed in cooperation with
# CNRI.  Hewlett-Packard provided funding for 1.6 integration and
# other compatibility work.
#

 
Modules
            
copy_reg
sre_compile
sre_parse
string

 
Classes
            
Scanner

 
class Scanner
       
  
__init__(self, lexicon)
scan(self, string)

 
Functions
            
_compile(*key)
_join(seq, sep)
_pickle(p)
_split(pattern, string, maxsplit=0)
_sub(pattern, template, string, count=0)
_subn(pattern, template, string, count=0)
compile(pattern, flags=0)
escape(pattern)
findall(pattern, string, maxsplit=0)
match(pattern, string, flags=0)
purge()
search(pattern, string, flags=0)
split(pattern, string, maxsplit=0)
sub(pattern, repl, string, count=0)
subn(pattern, repl, string, count=0)
template(pattern, flags=0)

 
Data
             DOTALL = 16
I = 2
IGNORECASE = 2
L = 4
LOCALE = 4
M = 8
MULTILINE = 8
S = 16
T = 1
TEMPLATE = 1
U = 32
UNICODE = 32
VERBOSE = 64
X = 64
_MAXCACHE = 100
__file__ = '/usr/lib/python1.6/sre.pyc'
__name__ = 'sre'
_cache = {('\012 (?P<String>\012 \\""" [^"\\\\]* (?:\012\011\011\011(?: ...ort [ \\t]+\012\011(?P<ImportFromList> [^#;\\n]+ )\012 )\012', 88): <SRE_Pattern object at 85f0848>, (' at 0x[0-9a-f]{6,}>$', 0): <SRE_Pattern object at 84cdb78>, (' at [0-9A-F]{8,}>$', 0): <SRE_Pattern object at 849d030>, ('((\\\\[\\\\abfnrtv\\\'"]|\\\\[0-9]..|\\\\x..|\\\\u....)+)', 0): <SRE_Pattern object at 84fdc58>, ('([ \011(]|^)([-a-zA-Z0-9_+]*[\177-\377][-a-zA-Z0-9_+\177-\377]*)([ \011)]|\012)', 0): <SRE_Pattern object at 8563ec8>, ('--[\011\012\013\014\015 ]*>', 0): <SRE_Pattern object at 8466cb0>, (r'.*FLAGS \((?P<flags>[^\)]*)\)', 0): <SRE_Pattern object at 8404ed0>, ('.*INTERNALDATE "(?P<day>[ 123][0-9])-(?P<mon>[A-...>[-+])(?P<zoneh>[0-9][0-9])(?P<zonem>[0-9][0-9])"', 0): <SRE_Pattern object at 8247c28>, (r'.*{(?P<size>\d+)}$', 0): <SRE_Pattern object at 8356410>, ('<!--', 0): <SRE_Pattern object at 82456e8>, ...}