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]*(\.)?[0-9]+$
Description
it will check for the +ve decimal numbers
Matches
1 | 123 | 132.132
Non-Matches
1.2.2 | -123
Author Rating: The rating for this expression. himraj love
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: Pattern Title
Name: Abdul Quddos
Date: 12/19/2008 5:19:08 PM
Comment:
Here is the Pattern that accept +ve numeric values with or without two decimal places only. ^[0-9]*(\.)?\d{2}$


Title: Pattern Title
Name: Abdul Quddos
Date: 12/19/2008 5:17:06 PM
Comment:
Here is the Pattern that accept +ve numeric values with or without two decimal places only. ^[0-9]*(\.)?\d{2}$


Title: Help required
Name: Rahul
Date: 7/19/2008 5:39:10 AM
Comment:
what if i want only 2 digits after decimal point


Title: just not working
Name: .net people
Date: 10/13/2006 7:23:49 AM
Comment:
just not working


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