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]?[1-9]|1[0-2])(:|\.)(00|15|30|45)?( )?(AM|am|aM|Am|PM|pm|pM|Pm))|(([0]?[0-9]|1[0-9]|2[0-3])(:|\.)(00|15|30|45)?))$
Description
This expression will allow a time value with 15 minute increments. It will not accept seconds. You can use either US time or Military time format.
Matches
1:00 PM | 6:45 am | 17:30
Non-Matches
4:32 am | 5:30:00 am | 17:01
Author Rating: Not yet rated. Rick Yokum
   Displaying page 1 of 1 pages; Items 1 to 1

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