Re: Better Regex and exception handling for this small code

2017-07-18 Thread Ganesh Pal
Thanks Cameron Simpson for you suggestion and reply quite helpful :) On Wed, Jul 12, 2017 at 5:06 AM, Cameron Simpson wrote: > On 11Jul2017 22:01, Ganesh Pal wrote: > >> I am trying to open a file and check if there is a pattern has changed >> after

Re: Better Regex and exception handling for this small code

2017-07-12 Thread MRAB
On 2017-07-12 23:49, Nick Mellor wrote: On Wednesday, 12 July 2017 02:32:29 UTC+10, Ganesh Pal wrote: Dear Python friends I am trying to open a file and check if there is a pattern has changed after the task got completed? file data:

Re: Better Regex and exception handling for this small code

2017-07-12 Thread Nick Mellor
On Wednesday, 12 July 2017 02:32:29 UTC+10, Ganesh Pal wrote: > Dear Python friends > > I am trying to open a file and check if there is a pattern has changed > after the task got completed? > > file data: > > > #tail -f /file.txt >

Re: Better Regex and exception handling for this small code

2017-07-11 Thread Cameron Simpson
On 11Jul2017 22:01, Ganesh Pal wrote: I am trying to open a file and check if there is a pattern has changed after the task got completed? file data: #tail -f /file.txt ..

Re: Better Regex and exception handling for this small code

2017-07-11 Thread Ganesh Pal
I am trying to open a file and check if the pattern i.e initiator_crc has changed after the task got completed? * On Tue, Jul 11, 2017 at 10:01 PM, Ganesh Pal wrote: > Dear Python friends > > I am trying to open a file and check if there is a pattern has changed >

Better Regex and exception handling for this small code

2017-07-11 Thread Ganesh Pal
Dear Python friends I am trying to open a file and check if there is a pattern has changed after the task got completed? file data: #tail -f /file.txt .. Note: CRC:algo = 2, split_crc = 1, unused