RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. Jason N. Gaylord
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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.


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials