Re: Regex for Python 2.7

2009-01-25 Thread Gabriel Genellina
En Sat, 24 Jan 2009 21:51:31 -0200, MRAB escribió: Gabriel Genellina wrote: > En Sat, 24 Jan 2009 18:23:51 -0200, MRAB > escribió: > >> Some time ago I discovered this difference between regular expressions >> in Python and Perl: >> >> Python >> >> \A matches at start of string

Re: Regex for Python 2.7

2009-01-24 Thread John Machin
On Jan 25, 7:23 am, MRAB wrote: > Some time ago I discovered this difference between regular expressions > in Python and Perl: > > Python > >         \A matches at start of string >         \Z matches at end of string > > Perl > >         \A matches at start of string >         \Z matches before t

Re: Regex for Python 2.7

2009-01-24 Thread MRAB
Gabriel Genellina wrote: > En Sat, 24 Jan 2009 18:23:51 -0200, MRAB > escribió: > >> Some time ago I discovered this difference between regular expressions >> in Python and Perl: >> >> Python >> >> \A matches at start of string >> \Z matches at end of string >> >> Perl >> >> \A matche

Re: Regex for Python 2.7

2009-01-24 Thread Gabriel Genellina
En Sat, 24 Jan 2009 18:23:51 -0200, MRAB escribió: Some time ago I discovered this difference between regular expressions in Python and Perl: Python \A matches at start of string \Z matches at end of string Perl \A matches at start of string \Z matches befo

Regex for Python 2.7

2009-01-24 Thread MRAB
Some time ago I discovered this difference between regular expressions in Python and Perl: Python \A matches at start of string \Z matches at end of string Perl \A matches at start of string \Z matches before terminal newline or at end of string \z match