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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find U.S. Military Time
Expression
^([0]?\d|1\d|2[0-3]):([0-5]\d):([0-5]\d)$
Description
Matches U.S. military time with option leading zero and required seconds.
Matches
1:01:01 | |01:01:01 | |12:23:33: | |22:09:59
Non-Matches
1:23 | |24:00:00
Author Rating: The rating for this expression. Kerry Keel
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: Cool
Name: TechPoetry
Date: 12/28/2006 4:02:20 PM
Comment:
This will come in handy.


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