Help with Regular Expressions

Christopher Subich spam.csubich+block at
Wed Aug 10 20:50:38 CEST 2005

Paul McGuire wrote:
> If your re demands get more complicated, you could take a look at
> pyparsing.  The code is a bit more verbose, but many find it easier to
> compose their expressions using pyparsing's classes, such as Literal,
> OneOrMore, Optional, etc., plus a number of built-in helper functions
> and expressions, including delimitedList, quotedString, and
> cStyleComment.  Pyparsing is intended for writing recursive-descent
> parsers, but can also be used (and is best learned) with simple
> applications such as this one.

As a slightly unrelated pyparsing question, is there a good set of API 
documentation around for pyparsing?

I've looked into it for my mud client, but for now have gone with 
DParser because I need (desire) custom token generation sometimes. 
Pyparsing looks easier to internationalize, though.

More information about the Python-list mailing list