RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Time hh:mm am/pm
Expression
^([0][1-9]|[1][0-2]):[0-5][0-9] {1}(AM|PM|am|pm)$
Description
Matches if the string is in hh:mm am/pm format. Also the hour and minute values should have left padding 0's if they are single digit.
Matches
03:45 am | 10:24 PM | 01:03 pm
Non-Matches
8:15 am | 16:10 | 10:60 pm | 10:13
Author Rating: Not yet rated. Nassim Ghods
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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