0 Replies - 1063 Views - Last Post: 09 April 2009 - 08:19 AM

#1 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1658
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

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)
^d{1,2}[:]d{2}([:]d{2})?( [aApP][mM]?)?$

Is This A Good Question/Topic? 0
  • +

Page 1 of 1