Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/regsub.pyc
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/lib/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&