I have a problem with regex and need your help. I want to check my string is correct or incorrect. First and last is a number, only number and comma after it. No space inside 2 numbers.
Ex:
- 1,2,3,49,5 this is correct
- 1,2,3,45, this is incorrect
- ,12,4,2,67 this is incorrect
- 1,2 3,4,5,6 this is incorrect