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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find All possible formats Time RegEx HH:MM:SS am pm
Expression
((a|p|A|P)(m|M)\s{0,1}(0[0-9]|1[0-2]|[0-9]):[0-5][0-9]:[0-5][0-9])|((a|p|A|P)(m|M)\s{0,1}(0[0-9]|1[0-2]|[0-9]):[0-5][0-9])|((0[0-9]|1[0-2]|[0-9]):[0-5][0-9]\s{0,1}(a|p|A|P)(m|M))|((0[0-9]|1[0-2]|[0-9]):[0-5][0-9]:[0-5][0-9]\s{0,1}(a|p|A|P)(m|M))|((0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]:[0-5][0-9])|((0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9])
Description
Matches all types of time declaration with ':' separator.
Matches
0:26:12 aM | 00:26:12 Pm | 0:26:12aM | 00:26:12Pm | Am 0:26:12 | pM 00:26:12 | Am0:26:12 | pM00:26:12 | 0:26 PM | 01:26 am | 0:26PM | 01:26am | Am 0:26 | pM 00:26 | Am0:26 | pM00:26 | 23:26:12 | 00:26:12 | 0:26:12 | 23:26 | 0:26
Non-Matches
n/a
Author Rating: The rating for this expression. Irinel Pascu
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

Title: Thanks
Name: Omdrej Pultera
Date: 12/19/2016 8:04:52 AM
Comment:
Works


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