Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^\$?(\d{1,3},?(\d{3},?)*\d{3}(\.\d{0,2})?|\d{1,3}(\.\d{0,2})?|\.\d{1,2}?)$
|
Description |
This expression will validate for US Currency with a wide range of input. Using other exps found on this site, I built this one to fix 2 main problems I was finding:
1-a space or blank entry is non-matching
2-use of .9 in place of .90 will match (this is for those people like me who hate to type and if I put .9 I mean .90
Hope this helps others save a little time. I feel I was pretty thorough in testing, but if you find something wrong, please post it. -Thanks
|
Matches |
$1.99 | 1.99 | .99
|
Non-Matches |
$10.999 | 100,00.99 | blank
|
Author |
Rating:
Not yet rated.
Kirk Fuller
|
Displaying page
of
pages;
Items to