Re: parsing tab and newline delimited text

2010-08-03 Thread alex23
On Aug 4, 12:14 pm, elsa wrote: > So, an individual entry might have this form (in printed form): > > Title    date   position   data > > with each field separated by tabs, and a newline at the end of data. As James posted, the csv module is ideal for this sort of thing. Dealing with delimited te

Re: parsing tab and newline delimited text

2010-08-03 Thread elsa
On Aug 4, 12:49 pm, Tim Chase wrote: > On 08/03/10 21:14, elsa wrote: > > > > > I have a large file of text I need to parse. Individual 'entries' are > > separated by newline characters, while fields within each entry are > > separated by tab characters. > > > So, an individual entry might have th

Re: parsing tab and newline delimited text

2010-08-03 Thread MRAB
elsa wrote: Hi, I have a large file of text I need to parse. Individual 'entries' are separated by newline characters, while fields within each entry are separated by tab characters. So, an individual entry might have this form (in printed form): Titledate position data with each fiel

Re: parsing tab and newline delimited text

2010-08-03 Thread Tim Chase
On 08/03/10 21:14, elsa wrote: I have a large file of text I need to parse. Individual 'entries' are separated by newline characters, while fields within each entry are separated by tab characters. So, an individual entry might have this form (in printed form): Titledate position data

Re: parsing tab and newline delimited text

2010-08-03 Thread James Mills
On Wed, Aug 4, 2010 at 12:14 PM, elsa wrote: > I have a large file of text I need to parse. Individual 'entries' are > separated by newline characters, while fields within each entry are > separated by tab characters. Sounds to me like a job of the csv module. cheers James -- -- James Mills --

parsing tab and newline delimited text

2010-08-03 Thread elsa
Hi, I have a large file of text I need to parse. Individual 'entries' are separated by newline characters, while fields within each entry are separated by tab characters. So, an individual entry might have this form (in printed form): Titledate position data with each field separated by