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 Time
Expression
^([0-1]?\d|2[0-3])([:]?[0-5]\d)?([:]?|[0-5]\d)?\s?(A|AM|P|p|a|PM|am|pm|pM|aM|Am|Pm)?$
Description
Its a very flexible time entry regular expression. It can accept all valid combination of time entry
Matches
1100 , 1100P,11:30A,11:30,11,11A,11:30AM
Non-Matches
11@,abc
Author Rating: Not yet rated. Amita
   Displaying page 1 of 1 pages; Items 1 to 1

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