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 1
Title Test Details Pattern Title
Expression
^(\d{1,2})(\s?(H|h)?)(:([0-5]\d))?$
Description
Validates hours and minutes. Allows for entry in the form of hours:minutes with optional minutes and optional hours indicator (H or h).
Matches
1h | 1:45 | 45
Non-Matches
1a | 145 | 1:99
Author Rating: Not yet rated. Andrew Yeaman
   Displaying page 1 of 1 pages; Items 1 to 1

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