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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Open Close Time
Expression
^(([0-1][0-9]|2[0-3])[0-5][0-9]\-([0-1][0-9]|2[0-3])[0-5][0-9]|[C|c]losed)$
Description
This allows for a single line input of open and close times (for a store/office).
Matches
0700-1530 | 1130-2310 | Closed | closed | 0000-2359
Non-Matches
0700 | Not open | 0700-2400 | 3159-0761
Author Rating: Not yet rated. J. Matthew Phipps
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-2024, RegexAdvice.com | ASP.NET Tutorials