I have a regex to evalute numbers
^\d*(?:,\d+)*(?:.\d+)?
These are some numbers to check it
12345 -- correct
.123 -- correct
23,456,789.123 --correct
123.456.7 -- wrong
- -- wrong
12345, -- wrong
123., -- wrong
,123 -- correct
but this last test case should be wrong. It should not be correct. Any help is accepted thank you