Paul McGuire wrote: > This isn't a regex solution, but uses pyparsing instead. Pyparsing > helps you construct recursive-descent parsers, and maintains a code > structure that is easy to compose, read, understand, maintain, and > remember what you did 6-months after you wrote it in the first place. > > Download pyparsing at http://pyparsing.sourceforge.net.
For the example listed, pyparsing is even overkill; the OP should probably use the csv module. -- http://mail.python.org/mailman/listinfo/python-list