jQuery NIC validate
jquery, regex, validation
Solution
you can use standard javaScript to test the Regex expression:
var idToTest = '12345-1234567-1',
myRegExp = new RegExp(/\d{5}-\d{7}-\d/);
if(myRegExp.test(idToTest)) {
//if true
}
else {
//if false
}
Problem
I need regex to validate an Pakistani National ID Card (NIC) number which contains Digits and Dashes in format given below `12345-1234567-1` Please help..