Re: [Tutor] Matching on multiple log lines

2006-10-30 Thread Matthew Warren
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Kent Johnson > Sent: 30 October 2006 11:55 > Cc: tutor@python.org > Subject: Re: [Tutor] Matching on multiple log lines > > wesley chun wrote: > >> so it'

Re: [Tutor] Matching on multiple log lines

2006-10-30 Thread Kent Johnson
wesley chun wrote: >> so it's guaranteed that 'Writing Message to' >> will always be followed by 'TRANSPORT_STREAM_ID' >> before the next occurrence of 'Writing Message to' >> and all text between can be ignored, >> and we increment the counter if and only if >> there is a newline immediately after

Re: [Tutor] Matching on multiple log lines

2006-10-29 Thread wesley chun
> so it's guaranteed that 'Writing Message to' > will always be followed by 'TRANSPORT_STREAM_ID' > before the next occurrence of 'Writing Message to' > and all text between can be ignored, > and we increment the counter if and only if > there is a newline immediately after 'TRANSPORT_STREAM_ID' >

Re: [Tutor] Matching on multiple log lines

2006-10-28 Thread jim stockford
so it's guaranteed that 'Writing Message to' will always be followed by 'TRANSPORT_STREAM_ID' before the next occurrence of 'Writing Message to' and all text between can be ignored, and we increment the counter if and only if there is a newline immediately after 'TRANSPORT_STREAM_I

[Tutor] Matching on multiple log lines

2006-10-28 Thread Tom Tucker
I would appreciate any recommendations or assistance on how to read and parse this log. The log is constantly growing and has the potential of being large. For this reason, we are reading in line by line. How do I match on multiple lines, while reading a log line by line. Hopefully the logic e