^d{1,2}[:]d{2}([:]d{2})?( [aApP][mM]?)?$
Valid time format
Page 1 of 10 Replies - 1143 Views - Last Post: 09 April 2009 - 08:19 AM
#1
Valid time format
Posted 09 April 2009 - 08:19 AM
Description: Regular expression patter for valid time format. Seconds (in the time) is optional, but if present must be 2 digits. AM/PM is also optional (and not case sensitive)
Page 1 of 1