Title |
Test
Find
Pattern Title
|
Expression |
^(([0]?[0-5][0-9]|[0-9]):([0-5][0-9]))$ |
Description |
This regex is to validate the time of a ~60 minute CD where the most time on the CD is 59:59 (minutes:seconds). It is derived from Ken Madden's time regex for a project for Erik Porter (Windows/Web guru). Written by Jason Gaylord. |
Matches |
30:05 | 5:05 | 02:59 |
Non-Matches |
25:7 | 5m:16 | 60:60 |
Author |
Rating:
Not yet rated.
Jason N. Gaylord
|
Source |
|
Your Rating |
|
Title: Time
Name: Michael Sync
Date: 12/17/2004 3:38:23 AM
Comment:
Thank U for time validation.
we can also validate as following time format [ 12 hour format ].
^(([0]?[0-1][0-2]|[0-2]):([0-5][0-9]))$
Thnx again.