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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 12 Hour Time
Expression
((\d{0}[0-9]|\d{0}[1]\d{0}[0-2])(\:)\d{0}[0-5]\d{0}[0-9](\:)\d{0}[0-5]\d{0}[0-9]\s(AM|PM))
Description
Matches hours 0-12:minutes 0-59:seconds 0-59 AM|PM
Matches
0:00:00 AM, 11:59:59 PM,12:00:00 AM, 5:34:00 PM
Non-Matches
1:00 AM, 5:3:00 PM, 5:34:00 P,5:34:00 Pm
Author Rating: Not yet rated. Robert Godwin
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