RegEx for validating CNIC numbers of Pakistan
CNIC
stands for Computerized National Identiry Card
. There are two ways we can actually write CNIC numbers:
12345-1234567-1
1234512345671
One with dashes and one without dashes but not mixed with other.