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
^ *(1[0-2]|[1-9]):[0-5][0-9] *(a|p|A|P)(m|M) *$
Description
validate 12-hour time with am/pm after it, with optional spaces before or after, and optionally between time and am/pm.
Matches
12:00am | 1:00 PM | 12:59 pm
Non-Matches
0:00 | 0:01 am | 13:00 pm
Author Rating: Not yet rated. Jim Tebbel
   Displaying page 1 of 1 pages; Items 1 to 1

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