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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find German numerical Strings w & w/o interpunctation
Expression
(?:^(?:-)?(?:\d{1,3}\.(?:\d{3}\.)*\d{3})(?:\,\d+)?$|^(?:-)?\d*(?:\,\d+)?$)
Description
This validation forces a value wheter to be strict niced or plain input of a numerical value. The separation per thousand should be a (.) dot and must be used exactly or never to be valid. Currently this RX validates german formed values... Just switch \, with \. and vice versa to get valid US results.
Matches
10000|12.123|5.123,000|,001|1.000.000|1,00
Non-Matches
1.0000|12.12.00|5,123.000|.001|1,000,000|1.00
Author Rating: Not yet rated. Lars Echterhoff
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-2018, RegexAdvice.com | ASP.NET Tutorials