I have a scenario that, a string should accept only numbers and comma, In between comma the number should be in range of 0 to 999.
Valid case:
322,333,459,999,000,001
Invalid case:
32222,44444444444,666666,
I tried with this regular expression [0-9{3},/,]+
. It only allows comma and numbers.
But how can we restrict to 3 digits in between the comma.
Thanks in advance.