I’m trying to make a regex for this:
1
1,1
1,1,1
1,1,1,1
the 1’s could be any digit (0 to 9)
I guess it would be something like that:
/^\d{1}+(,+\d{1})?+(,+\d{1})$/
But I don’t know how to put that comma in the expression and to make sure there could be a maximum of 4 digits, separated by 3 commas.
You could try this one.