Tests:
1 PASS
123,234 PASS
123,435, FAIL
1, FAIL
124,dsds,33 FAIL
121,121,1212 PASS
So, you can have any amount of numbers.
Also, if it matters, i’m working in C#, and i plan to coerce a list of Int32’s out of the values (after it passes the regex).
What regex pattern can i use for this?
You can use the following regex:
This will also allow leading zeroes, if that’s not what you want you can use