re and multiline strings

Uwe Hoffmann nospam at nospam.de
Sat Jul 21 22:16:25 CEST 2001


Lee Harr wrote:
> 
> >>> t = 'aaazbbbycccc\nccccc\n'
> >>> p = re.compile('(.*?)z(.*?)y(.*)')

p = re.compile('(.*?)z(.*?)y(.*)',re.S)



More information about the Python-list mailing list