Using the re module (Regular expressions)

Darrell Gallion darrell at
Tue Sep 26 15:39:54 CEST 2000

Try this

----- Original Message -----
From: "Morten W. Petersen" <morten at>

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

More information about the Python-list mailing list