[Pyrex] strange behavior of re module
    Greg Ewing 
    greg.ewing at canterbury.ac.nz
       
    Thu May  4 04:34:36 CEST 2006
    
    
  
Jani Hakala wrote:
> "Yuan Mang" <mangyuan at gmail.com> writes:
>
> > t=re.search('(\d+)','-2.80 98\n').groups()
> >
>  >and this works in python. but still not in pyrex.
>
> Perhaps r'(\d+)' works or \\d instead of \d.
This might be a difference between Python and
Pyrex handling of escapes in strings. I'll look
into it.
-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiam!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+
    
    
More information about the Pyrex
mailing list