ó n”þfc@s'dZddlZddlZddlZddddddd d d d d ddddddddddddgZdZejZZej Z Z ej Z ZejZZejZZejZZejZZejZejZdd„Zdd„Zddd„Z ddd„Z!ddd „Z"dd!„Z#ej$d"krdej%d#ƒdd$„Z&ndd%„Z'd&„Z(dd'„Z)e*d(ƒZ+d)„Z,iZ-iZ.e/ej'd*dƒƒZ0d+Z1d,„Z2d-„Z3d.„Z4d/„Z5ddl6Z6d0„Z7e6j8e0e7e2ƒd1d3d2„ƒYZ9dS(4sâSupport for regular expressions (RE). This module provides regular expression matching operations similar to those found in Perl. It supports both 8-bit and Unicode strings; both the pattern and the strings being processed can contain null bytes and characters outside the US ASCII range. Regular expressions can contain both special and ordinary characters. Most ordinary characters, like "A", "a", or "0", are the simplest regular expressions; they simply match themselves. You can concatenate ordinary characters, so last matches the string 'last'. The special characters are: "." Matches any character except a newline. "^" Matches the start of the string. "$" Matches the end of the string or just before the newline at the end of the string. "*" Matches 0 or more (greedy) repetitions of the preceding RE. Greedy means that it will match as many repetitions as possible. "+" Matches 1 or more (greedy) repetitions of the preceding RE. "?" Matches 0 or 1 (greedy) of the preceding RE. *?,+?,?? Non-greedy versions of the previous three special characters. {m,n} Matches from m to n repetitions of the preceding RE. {m,n}? Non-greedy version of the above. "\\" Either escapes special characters or signals a special sequence. [] Indicates a set of characters. A "^" as the first character indicates a complementing set. "|" A|B, creates an RE that will match either A or B. (...) Matches the RE inside the parentheses. The contents can be retrieved or matched later in the string. (?iLmsux) Set the I, L, M, S, U, or X flag for the RE (see below). (?:...) Non-grouping version of regular parentheses. (?P...) The substring matched by the group is accessible by name. (?P=name) Matches the text matched earlier by the group named name. (?#...) A comment; ignored. (?=...) Matches if ... matches next, but doesn't consume the string. (?!...) Matches if ... doesn't match next. (?<=...) Matches if preceded by ... (must be fixed length). (?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789cCsvt|ƒ}t}xPt|ƒD]B\}}||kr|dkrPd||texpand_template(RRR((s/usr/lib64/python2.7/re.pyt_expandscCsLt||ƒ}|d r<t|dƒdkr<|ddS|d„}|S(NiicSstj||ƒS(N(R=R@(RR((s/usr/lib64/python2.7/re.pytfilters(R?R7(RRRB((s/usr/lib64/python2.7/re.pyt_subx s !  cCst|j|jffS(N(RRR(R;((s/usr/lib64/python2.7/re.pyt_picklestScannercBseZdd„Zd„ZRS(ic CsÙddlm}m}||_g}tjƒ}||_xR|D]J\}}|jtj||t |ƒdtj ||ƒffgƒƒqAWt |ƒd|_ tj||d|ffgƒ}t j|ƒ|_dS(Niÿÿÿÿ(tBRANCHt SUBPATTERNi(t sre_constantsRFRGtlexiconR=tPatternRtappendt SubPatternR7tparsetgroupsR0R4Rtscanner( tselfRIRRFRGR;R)tphrasetaction((s/usr/lib64/python2.7/re.pyt__init__#s   3!c CsÔg}|j}|jj|ƒj}d}x™|ƒ}|s@Pn|jƒ}||kr\Pn|j|jdd}t|dƒr¤||_|||jƒƒ}n|dk r½||ƒn|}q-|||fS(Niit__call__( RKRORtendRIt lastindexthasattrtgroupR0( RPRtresultRKRR+tmtjRR((s/usr/lib64/python2.7/re.pytscan1s&        (t__name__t __module__RSR\(((s/usr/lib64/python2.7/re.pyRE"s ((:t__doc__tsysR4R=t__all__t __version__tSRE_FLAG_IGNORECASER RtSRE_FLAG_LOCALER RtSRE_FLAG_UNICODERRtSRE_FLAG_MULTILINER RtSRE_FLAG_DOTALLR RtSRE_FLAG_VERBOSERRtSRE_FLAG_TEMPLATER"tTEMPLATEtSRE_FLAG_DEBUGtDEBUGRRRRRRRt hexversionRKRRRRt frozensetR&R RR!R.R2R8RR?RARCtcopy_regRDtpickleRE(((s/usr/lib64/python2.7/re.pytfsX