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*\.?\d*[1-9]+\d*$)|(^[+]?[1-9]+\d*\.\d*$)
Description
Accepts only positive decimal values. Zero and negative numbers are non-matching.Allows zeros after last non-zero numeric value after decimal place for significant digits
Matches
01.23 | 0.15 | 0.1568
Non-Matches
0 | -0.18 | .0
Author Rating: Not yet rated. Miguel Gutierrez
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: It's work
Name: Miguel Gutierrez
Date: 3/15/2005 10:09:43 AM
Comment:
in the test of this pagina it works correctly


Title: Fails to match "01.23"
Name: Randal L. Schwartz
Date: 3/14/2005 3:40:41 PM
Comment:
Fails to match "01.23"


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