Re: ignore specific data

2005-11-21 Thread Bengt Richter
On 21 Nov 2005 13:59:12 -0800, [EMAIL PROTECTED] wrote: >I tried the solutions you provided..these are not as robust as i >thought would be... >may be i should put the problem more clearly... > >here it goes > >I have a bunch of documents and each document has a header which is >common to all

Re: ignore specific data

2005-11-21 Thread pkilambi
I tried the solutions you provided..these are not as robust as i thought would be... may be i should put the problem more clearly... here it goes I have a bunch of documents and each document has a header which is common to all files. I read each file process it and compute the frequency of w

Re: ignore specific data

2005-11-21 Thread Mike Meyer
[EMAIL PROTECTED] writes: > thanks for that. But this will check for the exact content of the > "start of block.." or "end of block". How about if the content is > anywhere in the line? Then the test is '"start of block." in line'. You could also use the line.find or line.index methods, b

Re: ignore specific data

2005-11-21 Thread pkilambi
thanks for that. But this will check for the exact content of the "start of block.." or "end of block". How about if the content is anywhere in the line? -- http://mail.python.org/mailman/listinfo/python-list

Re: ignore specific data

2005-11-21 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Hi I need help. What I want to do is If I read a file with some text > content... > I would like to ignore a block of lines and consider the rest.. > so if the block starts with > > "start of block." > fjesdgsdhfgdlgjklfjdgkd > jhcsdfskdlgjkljgkfdjkgj > "end

Re: ignore specific data

2005-11-21 Thread skip
pkilambi> I would like to ignore a block of lines and consider the pkilambi> rest.. so if the block starts with pkilambi> "start of block." pkilambi> fjesdgsdhfgdlgjklfjdgkd pkilambi> jhcsdfskdlgjkljgkfdjkgj pkilambi> "end of block" pkilambi> I want to ig

ignore specific data

2005-11-21 Thread pkilambi
Hi I need help. What I want to do is If I read a file with some text content... I would like to ignore a block of lines and consider the rest.. so if the block starts with "start of block." fjesdgsdhfgdlgjklfjdgkd jhcsdfskdlgjkljgkfdjkgj "end of block" I want to ignore this while proc