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
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to