I am trying to run a regex check using javascript to be sure that the string follows the pattern:
NNNN-NN-NN
(where N = any number 0-9) I need to be sure the dashes are in place as well.
So, any 4 numbers followed by a dash followed by any 2 numbers followed by a dash followed by any two numbers.
How do I write that as a regex?
Here it is: