Giles Constant wrote: > How about (explanation of syntax to follow): > > boolean = match(input, "oneormore(digit).one('hello')") Take this a step further and use constructor functions to build the RE. from spiffy_re import one, oneormore pattern = oneormore(digit) + one('hello') match = pattern.match(input) -- Greg