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*$
Description
Matches Numeric with Commas and a single decimal point. Also matches empty string.
Matches
1,000 | 3,000.05 | 5,000,000
Non-Matches
abc | $100,000 | Forty
Author Rating: Not yet rated. Kevin Read
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: This one is better
Name: Bartha Ferenc
Date: 9/17/2019 11:15:28 AM
Comment:
"(-| |\+)?((\d|,)*.?\d+)" Good for reading from a list of numbers, too. Absolute value is also captured.


Title: This one is better
Name: Bartha Ferenc
Date: 9/17/2019 11:00:11 AM
Comment:
"(-| |\+)?((\d|,)*.?\d+)" Good for reading from a list of numbers, too. Absolute value is also captured.


Title: too simple
Name: Bob
Date: 7/23/2004 4:51:59 PM
Comment:
Says the following is valid: 00201,


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