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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Positive or Negative Decimal with Commas
Expression
^[-+]?(\d?\d?\d?,?)?(\d{3}\,?)*(\.?\d+)$
Description
This pattern matches decimal values. It supports option leading positive or negative symbols. Supports commas where only the leading group can have less than three numbers.
Matches
+1.0 | -3 | 1,234.00 | 1,234,567
Non-Matches
A | 1,23 | 1,23,456
Author Rating: Not yet rated. Bret Stateham
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

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