Title |
Test
Find
Pattern Title
|
Expression |
^(\$)?((\d+)|(\d{1,3})(\,\d{3})*)(\.\d{2,})?$ |
Description |
This pattern handles currency including the following:
optional period with two or more digits to the right of the period
optional commas
optional dollar sign($) |
Matches |
$3,333,333,333 | $333333 | $3,333.33 |
Non-Matches |
3,33 | 3333,333,333 | 333.3 |
Author |
Rating:
Not yet rated.
Matt Wickless
|
Source |
|
Your Rating |
|
Title: Systems Administrator
Name: Ron Allen
Date: 7/16/2004 1:55:38 PM
Comment:
This one works well for my needs, with only a slight modification to allow a leading space and negative values. Thanks!