Does anyone know what format the regular expression would be if i wanted to limit input to betting odds format, ie x/y where x and y are positive integers. I Just cant get my head round how you format these things.
/^\d+\/\d+$/
/^\d+\/\d+$/ won't work since it will match 0/1
The leading and trailing forward slashes are not part of the regular expression but language specific delimiters.
/^(?:[1-9]\d*)+\/(?:[1-9]\d*)+$/