Posted by Preventer of Work on 01/31/07 00:00
gene.ellis@gmail.com wrote:
> Hey everyone! I am banging my head on this regular expression problem.
> I want to validate US currency. So far I have '^(\.[0-9]+|[0-9]+(\.
> [0-9]*)?)$'
>
> but this fails if I use a commna (i.e. 2,000.00). Any help would be
> greatly appreciated!
>
One way to deal with it is to strip out any commas first.
You probably don't want them anyway.
[Back to original message]
|