trentmiller
4/4/2013 - 12:51 AM

Regex

// Checks for Any Number or the letterx in character spaces 1-10,
// three addtional characters with the same critera are optional.
^[0-9xX]{10}(?:[0-9xX]{3})?$

// Checks for numbers in first for character spaces,
// Optional Hyphen,
// Another 3 numbers,
// Last character can be a number or an x character
^[0-9]{4}(?:\-)?[0-9]{3}[0-9Xx]{1}$