Need regular expression for format where maximum 7 digits are allowed, with comma after every third digit.
Valid values are:
7
77
555
1,234
12,345
444,888
4,669,988
Currently I am using ([0-9]{1}(,?[0-9]{3}){1,2} which fails in first three scenarios.