I'm looking for a good way to check a number that a user has entered for correct position of an optional comma(s).
For example
1,000,000.00 = correct
1000000 = correct
1,00,000.00 = incorrect
,100,000 = incorrect
So it looks like i need to check to see that there is at least one number to the left and 3 numbers to the right of the comma. Or is there a regex way to do this?