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/