I am trying to use regex to check if the user input is in the correct format xx-xx (input only accepts numbers, does not accept alphanumeric characters)
I tried: /[1-9]{1,}\-[1-9]{1,}/ but when entering alphabetic characters still pass this test.
Can you guys help me. Thank.