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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Allow Decimal only
Expression
^\d*[0-9](|.\d*[0-9]|)*$
Description
Decimal like 123.23 123.1234 12345.456
Matches
123.23 | 123.1234 | 1234 | 1234.456
Non-Matches
123a.12 | 123.34d | abc
Author Rating: The rating for this expression. Gyanendra
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: Bad expression, that sucks
Name: Rija
Date: 10/1/2012 8:53:11 AM
Comment:
125p789, 456x131231, 125.456.78 match! It's a very bad expression. Please correct it!


Title: its wrong
Name: the expression does not work
Date: 1/6/2011 3:42:05 PM
Comment:
try 234.4q567...it will match your expression. which means its allowing decimal characters too within numbers after decimal. Please do not post untested expressions. Thanks


Title: its wrong
Name: the expression does not work
Date: 1/6/2011 3:41:56 PM
Comment:
try 234.4q567...it will match your expression. which means its allowing decimal characters too within numbers after decimal. Please do not post untested expressions. Thanks


Title: its wrong
Name: the expression does not work
Date: 1/6/2011 3:41:56 PM
Comment:
try 234.4q567...it will match your expression. which means its allowing decimal characters too within numbers after decimal. Please do not post untested expressions. Thanks


Title: hj
Name: ghjgh
Date: 7/16/2010 8:40:04 AM
Comment:
ghjghj


Title: hj
Name: ghjgh
Date: 7/16/2010 8:39:41 AM
Comment:
ghjghj


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