Using the re module (Regular expressions)

Steve Holden sholden at holdenweb.com
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: ..."

regards
 Steve
-- 
Helping people meet their information needs with training and technology.
703 967 0887      sholden at bellatlantic.net      http://www.holdenweb.com/





More information about the Python-list mailing list