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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
(^([0-9]|[0-1][0-9]|[2][0-3]):([0-5][0-9])$)|(^([0-9]|[1][0-9]|[2][0-3])$)
Description
Matches a string if it is a valid time in the format of HH:MM / H:MM / HH / H
Matches
10:35 | 9:20 | 23
Non-Matches
24:00 | 20 PM | 20:15 PM
Author Rating: The rating for this expression. Nacho Varas
   Displaying page 1 of 1 pages; Items 1 to 1

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