[Python-3000] Alternative to standard regular expressions

Dj Gilcrease digitalxero at gmail.com
Sun Sep 28 21:00:10 CEST 2008


On Sat, Sep 27, 2008 at 2:16 PM, Giles Constant <giles at spacepigs.com> wrote:
> Instead of:
>  /\d+hello/
>
> How about (explanation of syntax to follow):
>
>  boolean = match(input, "oneormore(digit).one('hello')")

Looks like you want pyparsing http://pyparsing.wikispaces.com/


More information about the Python-3000 mailing list