Using the re module (Regular expressions)

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


Try this
r'(?s)Returned-Path:\s<.*>\012Recieved:'

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

> 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?
>






More information about the Python-list mailing list