Using the re module (Regular expressions)

Andrew Kuchling akuchlin at mems-exchange.org
Tue Sep 26 10:29:56 EDT 2000


"Darrell Gallion" <darrell at dorb.com> writes:
> Try this
> r'(?s)Returned-Path:\s<.*>\012Recieved:'

Also note that it's spelled 'Received'.  It looks like the original
poster is trying to do something with RFC-822 headers; any reason the
rfc822 module couldn't be used?

--amk




More information about the Python-list mailing list