I am trying to get a regex to check for only numbers and commas so for example
This will go through
1 0,3,4 1,3 1,3,15,12 This will not go through
abc 1,,3,,4 1,3, ,1,1 My current regex is
/[0-9]*[,][0-9]*/ it doesnt seem to work as what i wanted Can i get some help thanks