Using the re module (Regular expressions)

Steve Holden sholden at
Thu Sep 28 00:40:47 CEST 2000

"Morten W. Petersen" wrote:
> I want to match a string, 'Returned-Path: <someuser at somehost>\nRecieved:'.
> Why doesn't re.compile(r'Return-Path:\s<.*>^Recieved:',re.MULTILINE) return
> a search object that'll match that line?
> Thanks in advance.
> -Morten

One simple possibility is the the header undoubtedly reads "Received: ..."

Helping people meet their information needs with training and technology.
703 967 0887      sholden at

More information about the Python-list mailing list