Need help parsing with pyparsing...

Hendrik van Rooyen mail at microcorp.co.za
Tue Oct 23 09:08:17 CEST 2007


 "Paul McGuire" <pt....stin.rr.com> wrote:


> By the way, are these possible data lines?:
> 
> A Line With No Upper Case Words
> A LINE WITH NO TITLE CASE WORDS
> SOME UPPER CASE WORDS A Title That Begins With A One Letter Word

That last one is a killer, and comes under the heading of "cruel and unusual".

try this:

THIS IS NONSENSE, SAY I A Fellow Needs A Break

I can't think of a way to handle these without explicitly programming for them.

- Hendrik




More information about the Python-list mailing list