Using the re module (Regular expressions)
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.
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 bellatlantic.net http://www.holdenweb.com/
More information about the Python-list