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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Time HHMMSS
Expression
^((0[1-9]|1[0-9]|2[0-4])([0-5]\d){2})$
Description
Time, which reg express is very simple to use :)
Matches
010000 | 245959 | 120000
Non-Matches
10000 | 000000 | 250000
Author Rating: The rating for this expression. ARUN PRASATH
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: This RegEx is not the more common ISO standard and Military Time
Name: JP McCrory
Date: 12/13/2018 7:28:06 PM
Comment:
So the hour range is 01-24 not 00-23 so if you are expecting standard ISO or Military hour ranges this is not the RegEx for you. This should be noted in Title of RegEx


Title: Why not to do so?
Name: Aigars
Date: 10/31/2008 10:12:56 AM
Comment:
^[0-2]\d[0-5]\d[0-5]\d$


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