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 2
Title Test Details Time 24:00 hrs format
Expression
^(([01][0-9]|[012][0-3]):([0-5][0-9]))*$
Description
The Regular Expression to validate time format in [24:00] hrs. >> Pemitted values from 00:00 to 23:59 >> Prefix zero for single digit hours 01:00 to 09:59 >> Tested & Certified by Mr. Shripad Pramod Bhende :-)
Matches
01:00 , 23:59
Non-Matches
2:00, 2:2, 02-30
Author Rating: The rating for this expression. VenkatRaj
Title Test Details Date Format
Expression
(([1-9]|[0][1-9])|1[012])[- /.](([1-9]|[0][1-9])|[12][0-9]|3[01])[- /.](19|20)\d\d
Description
Regular Expression to validate date in MM/DD/YYYY format. >> Permitted formats "1/1/2008” or “01/01/2008” or “01/1/2008” or 1/01/2008”
Matches
1/1/2008, 01/01/2008, 01/1/2008, 1/01/2008, 1-01-2008
Non-Matches
31/12/2009
Author Rating: The rating for this expression. VenkatRaj
   Displaying page 1 of 1 pages; Items 1 to 2

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