On 2010-12-27, Tim Harig <user...@ilthio.net> wrote: > ... if re.match(r'''^[0-9]{2}:[0-9]{2}:[0-9]{2}$''', timeInput) == None: [SNIP] > Currency works the same way using validating it against: > r'''[0-9]+\.[0-9]{2}'''
Sorry, you need to check to make sure that there are no trailing characters as in the example above. Checking the beginning is not actually necessary with match(). r'''^[0-9]+\.[0-9]{2}$''' -- http://mail.python.org/mailman/listinfo/python-list