What I would like to do now is to validate an expiry date entered in the format mm/yy. So for example the first,second, fourth and fifth character must be a digit. The third character must be the / character. If the user enters anything expect this format then I want to replace what they have typed with an empty space like before.
Any help greatly appreciated thanks
var invalidChars = /[^0-9]/gi
ob.value = ob.value.replace(invalidChars,"");