On Sun, Apr 15, 2012 at 9:00 AM, MRAB <pyt...@mrabarnett.plus.com> wrote: > re.match(...) returns either a match object or None. In a condition, a > match object always evaluates as True and None always evaluates as > False.
Yes, should have clarified that. It's a deliberate feature of the re module that you can do this. Very handy. ChrisA -- http://mail.python.org/mailman/listinfo/python-list