so I'm trying to make a google form where a person will need to input either one single number or a series of numbers in a short answer, while necessarily using the comma separators between the different numbers. There should be no limit to the number of characters for each of the numbers.
Example of correct inputs:
2
123
123123123123123123123123
123123123123,12341235
1234123412341234,0102020,000122123
Example of incorrect inputs:
1.2 (no decimals should be accepted)
asdasdasd (has non numeric characters)
123123123;12312313 (has the incorrect separator)
123123123, 123123123 (has a space between the comma and the next number)
123123123,123123123, (has a comma at the end, but is not followed by any other numbers)
This is my first contact with regular expressions, so I'm struggling a lot. I've searched everywhere and couldn't figure it out by myself. Hope you guys can help me.
Edit:
I was able to make it work with the query below:
^\d{1,1000}(,\d{1,1000})*$
However, is there an expression I can use other than {1,1000}? I basically don't care if it has one or infinite characters, it just needs to be a whole number