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 2
Title Test Details 24H Time
Expression
^([0-1]?[0-9]|[2][0-3]):([0-5][0-9])$
Description
Checks time in 24 hours notation, however this one is shorter than the ones I found on regexplib
Matches
23:00 | 12:21 | 0:00
Non-Matches
24:00 | 23:60 | 0:60
Author Rating: The rating for this expression. nikneem
Title Test Details Dutch date & time combination
Expression
^([3]{1}[0-1]{1}|[1-1]?[0-9]{1})-([0-1]?[0-2]{1}|[0-9]{1})-[0-9]{4}([\s]+([2]{1}[0-3]{1}|[0-1]?[0-9]{1})[:]{1}([0-5]?[0-9]{1})([:]{1}([0-5]?[0-9]{1}))?)?$
Description
Validates dutch (european) date and time combination (dd-mm-yyyy). Dates are accepted, date and time is accepted. The time notation (hh:mm:ss) may or may not contain a value for seconds
Matches
31-12-2009 23:59:59 | 1-1-2010 10:00 | 01-01-2010
Non-Matches
32-12-2009 | 01-13-2010 | 01-01-2010 01
Author Rating: The rating for this expression. nikneem
   Displaying page 1 of 1 pages; Items 1 to 2

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