Title |
Test
Find
Pattern Title
|
Expression |
^\$?(\d{1,3}(\,\d{3})*|(\d+))(\.\d{0,2})?$ |
Description |
From Author: DON'T USE THIS ONE. FIND MY OTHER ONE THAT BLOCKS LEADING ZEROS. My site also couldn't swallow the \d, so I switched to numeric ranges and it worked fine.
KEYWORDS Currency Money Dollar
|
Matches |
$0,234.50 | 0234.5 | 0,234. |
Non-Matches |
$1,23,50 | $123.123 |
Author |
Rating:
Not yet rated.
Tom Persing
|
Source |
Slightly modified Michael Ash's entry; optional $ sign and optional decimal pt. w/ or w/o one or two decimal digit. |
Your Rating |
|