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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Whole or quarter hours
Expression
^\d{1,2}((,)|(,25)|(,50)|(,5)|(,75)|(,0)|(,00))?$
Description
Maximum 2 digits followed by an optional comma and a valid quarter to be used in time calculations. I wasn't satisfied with the quarter regex posted earlier by Bob Kranson.
Matches
1,25 3,75 4,5 7 9,0
Non-Matches
1.25 1,4 100,50
Author Rating: The rating for this expression. Joepsel
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