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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(([8]))$|^((([0-7]))$|^((([0-7])).?((25)|(50)|(5)|(75)|(0)|(00))))$
Description
Time off hours edit for quarter hour(s) less than eight.
Matches
0.25 | 7.75 | 8
Non-Matches
8.25 | 7.15 | 0.15
Author Rating: Not yet rated. Bob Kranson
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: Still a little problem
Name: rene popken
Date: 1/9/2004 11:06:55 AM
Comment:
it's much better, but it still rejects 8.00 hours, although this must be acepted. I am a newbie to regexps, and need it to validate a datagrid where users can fill in 0 - 24 hours, in quarters of an hour. So 24.00 and 0.00 must be excepted. I guess I can figure it out, with the examples on this site


Title: value > 8 match?
Name: rene popken
Date: 1/9/2004 9:11:26 AM
Comment:
it doesn't seem to work. i can enter 24 and it's a match. Although it must be 8 or 0 to 7


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