|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/proc/self/root/usr/lib/python2.4/ |
Upload File : |
mò
Ï=Ec @ 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&