|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21571/root/usr/lib64/python2.4/ |
Upload File : |
mò
‚=5Dc @ sÀ d Z d k Z e i d e ƒ e i d d e e ƒ d k Z d d d d d g Z d
„ Z d „ Z d d
„ Z
d d „ Z d „ Z d d „ Z
h a d „ Z d „ Z d „ Z d „ Z d S( s Regexp-based split and replace using the obsolete regex module.
This module is only for backward compatibility. These operations
are now provided by the new regular expression module, "re".
sub(pat, repl, str): replace first occurrence of pattern in string
gsub(pat, repl, str): replace all occurrences of pattern in string
split(str, pat, maxsplit): split string using pattern as delimiter
splitx(str, pat, maxsplit): split string using pattern as delimiter plus
return delimiters
Ns4 the regsub module is deprecated; please use re.sub()t ignoret t subt gsubt splitt splitxt capwordsc C se t | ƒ } | i | ƒ d j o? | i } | d \ } } | | t | | | ƒ | | } n | S( Ni (
t compilet patt progt searcht strt regst at bt expandt repl( R R R R
R R R ( ( t /usr/lib64/python2.4/regsub.pyR s &c
C s t | ƒ } d } d } d } xÜ | i | | ƒ d j o | i } | d \ } } | | j o
| j n oZ | oR | t | ƒ j p | i | | d ƒ d j o Pn | i } | d \ } } n | | | | !t | | | ƒ } | } d } q! W| | | } | S( NR i i ( R R R t newt startt firstR
R R R
R t lenR R (
R R R R
R R R R R R ( ( R R , s$ &0 !i c C s t | | | d ƒ S( Ni ( t intsplitR R t maxsplit( R R R ( ( R R E s c C s t | | | d ƒ S( Ni ( R R R R ( R R R ( ( R R O s c C s t | ƒ }
g } d } } d } xÊ |
i | | ƒ d j o° |
i } | d \ } } | | j o&