Re: Split string but ignore quotes

2009-09-30 Thread Processor-Dev1l
On Sep 29, 5:11 pm, Scooter slbent...@gmail.com wrote: I'm attempting to reformat an apache log file that was written with a custom output format. I'm attempting to get it to w3c format using a python script. The problem I'm having is the field-to-field matching. In my python code I'm using

Split string but ignore quotes

2009-09-29 Thread Scooter
I'm attempting to reformat an apache log file that was written with a custom output format. I'm attempting to get it to w3c format using a python script. The problem I'm having is the field-to-field matching. In my python code I'm using split with spaces as my delimiter. But it fails when it

Re: Split string but ignore quotes

2009-09-29 Thread Björn Lindqvist
2009/9/29 Scooter slbent...@gmail.com: I'm attempting to reformat an apache log file that was written with a custom output format. I'm attempting to get it to w3c format using a python script. The problem I'm having is the field-to-field matching. In my python code I'm using split with spaces

Re: Split string but ignore quotes

2009-09-29 Thread MRAB
Björn Lindqvist wrote: 2009/9/29 Scooter slbent...@gmail.com: I'm attempting to reformat an apache log file that was written with a custom output format. I'm attempting to get it to w3c format using a python script. The problem I'm having is the field-to-field matching. In my python code I'm

Re: Split string but ignore quotes

2009-09-29 Thread Simon Forman
On Tue, Sep 29, 2009 at 11:11 AM, Scooter slbent...@gmail.com wrote: I'm attempting to reformat an apache log file that was written with a custom output format. I'm attempting to get it to w3c format using a python script. The problem I'm having is the field-to-field matching. In my python

Re: Split string but ignore quotes

2009-09-29 Thread BJ Swope
Would the csv module be appropriate? On 9/29/09, Scooter slbent...@gmail.com wrote: I'm attempting to reformat an apache log file that was written with a custom output format. I'm attempting to get it to w3c format using a python script. The problem I'm having is the field-to-field matching.