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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 24H Time
Expression
^([0-1]?[0-9]|[2][0-3]):([0-5][0-9])$
Description
Checks time in 24 hours notation, however this one is shorter than the ones I found on regexplib
Matches
23:00 | 12:21 | 0:00
Non-Matches
24:00 | 23:60 | 0:60
Author Rating: The rating for this expression. nikneem
Source http://www.zonderpunt.nl
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

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