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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^\d*\.?((25)|(50)|(5)|(75)|(0)|(00))?$
Description
This is a pattern to search and verify that a decimal number ends with a 25, 50, 75, 0 or 00. It does match for a nothing after decimal also but I guess thats ok !!
Matches
0.25 | .75 | 123.50
Non-Matches
.77 | 1.435
Author Rating: Not yet rated. narsi v
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: Does what I was looking for
Name: Jamon
Date: 11/2/2006 11:05:02 AM
Comment:
Was having issues on my own getting the pre-set values to work correctly. Modified this slightly to do what I needed it to! (Verify that entry is between 0 and 23.75 hours)


Title: Matches dot only too
Name: Jon
Date: 2/25/2005 1:57:37 PM
Comment:
This reg ex matches just the "dot" too. Do you have a fix for that?


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