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-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$
Description
Time in 24 hours format with optional seconds
Matches
12:15 | 10:26:59 | 22:01:15
Non-Matches
24:10:25 | 13:2:60
Author Rating: The rating for this expression. Carlos R. L. Rodrigues
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: regular expression validator format 24 hr
Name: shiva
Date: 9/22/2011 4:23:26 AM
Comment:
it is taking value like 8:30 but we expect it should take 08:30 only


Title: Date Validator
Name: Madhanlal
Date: 6/10/2006 2:59:51 AM
Comment:
It works well for me. Thank you [email protected]


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