I have a text box for user input where user can enter only comma separated numbers. Comma at the end of the string is also allowed
I am done with regex for that
var regex=/^[0-9\,]+$/;
How to apply higher bound limit on each comma separated number?
lets say, maximum number is 10 digit
following is valid
11,22,333,555555 and
11,23,
following is invalid
111111111111111111111111,4,4
jsfiddle here