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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[-+]?[0-9]\d{0,2}(\.\d{1,2})?%?$
Description
Required and regular expression validator. For supporting -999.99 to +999.99 . Positive and Negative integer/ decimal validations. Percentage sign is also supported. Will not allow empty strings. Can increase/decrease the range as you need.
Matches
12.3 | 123 | -123.45
Non-Matches
- | 10.1234 | -1234
Author Rating: Not yet rated. Error Reporter
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: ?
Name: acpnomade
Date: 7/5/2006 10:43:08 AM
Comment:
^[-+]?([0]*)?\d{1,3}(\.\d{1,2})?([0]*)?$?%|^$ allow numbers representations such as 0001.33000


Title: Can I use range betwween 1 to 100 using this expression??
Name: Error Reporter
Date: 2/1/2006 6:08:09 AM
Comment:
Can I use range betwween 1 to 100 using this expression?? It's very urgent.


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