Currently i am using this regex to match for positive numbers with a single decimal point
/^\d+(\.\d+)?$/
But this doesn't allow commas. How can i modify this to allow zero or more commas before the decimal point?
Example :
- 11,111.00 (should be allowed) I am okay with numbers having any number of comma's before decimal point.
EDIT:
Valid values
- 111
- 11,111
- 11,111.0
- 111111
The values can be entered with or without comma. The datatype of this field is SQL MONEY, so it will handle comma's.