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
^([1-9]|1[0-2]):[0-5]\d ?(a|A|p|P)(m|M)$
Description
I built this expression to validate a time input field.
Matches
7:15 am|12:30 PM|11:19pM
Non-Matches
11am|1300|14:00|3:60 PM
Author Rating: Not yet rated. Ronnie Overby
   Displaying page 1 of 1 pages; Items 1 to 1

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