Re: pyparsing: match empty line

2008-09-03 Thread Marek Kubica
On Wed, 03 Sep 2008 06:12:47 -0700, Paul McGuire wrote: > On Sep 3, 4:26 am, Marek Kubica <[EMAIL PROTECTED]> wrote: >> I could set the whitespace >> on every element, but that is as you surely agree quite ugly. Do you >> accept patches? I'm thinking about some kind of factory-class which >> woul

Re: pyparsing: match empty line

2008-09-03 Thread Paul McGuire
On Sep 3, 4:26 am, Marek Kubica <[EMAIL PROTECTED]> wrote: > Hi, > > First of all a big thank you for your excellent library and of course > also for your extensive and enlightening answer! > I'm glad pyparsing has been of help to you. Pyparsing is building its own momentum these days. I have a

Re: pyparsing: match empty line

2008-09-03 Thread Marek Kubica
Hi, First of all a big thank you for your excellent library and of course also for your extensive and enlightening answer! > 1) Well done in resetting the default whitespace characters, since you > are doing some parsing that is dependent on the presence of line ends. > When you do this, it is

Re: pyparsing: match empty line

2008-09-02 Thread Paul McGuire
On Sep 2, 11:38 am, Marek Kubica <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to get this stuff working, but I still fail. > > I have a format which consists of three elements: > \d{4}M?-\d (4 numbers, optional M, dash, another number) > EMPTY (the token) > [Empty line] (the token. The line m