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 |
|