Validation Regexes Master

Personal Account Number (PAN) Format

ABCDEFGHIJK
1
Type of PANDigits
2
12345678910
3
Individuals(AAA - ZZZ)PFirst alphabet of holder's name(0001 - 9999)(A - Z)
4
Body of Individuals(AAA - ZZZ)BFirst alphabet of holder's name(0001 - 9999)(A - Z)
5
Association of Persons(AAA - ZZZ)AFirst alphabet of holder's name(0001 - 9999)(A - Z)
6
Hindu Undivided Family(AAA - ZZZ)HFirst alphabet of holder's name(0001 - 9999)(A - Z)
7
Companies(AAA - ZZZ)CFirst alphabet of holder's name(0001 - 9999)(A - Z)
8
Limited Liability Partnership(AAA - ZZZ)EFirst alphabet of holder's name(0001 - 9999)(A - Z)
9
Partnership firms(AAA - ZZZ)FFirst alphabet of holder's name(0001 - 9999)(A - Z)
10
Trusts(AAA - ZZZ)TFirst alphabet of holder's name(0001 - 9999)(A - Z)
11
Government agencies(AAA - ZZZ)GFirst alphabet of holder's name(0001 - 9999)(A - Z)
12
Local Authority(AAA - ZZZ)LFirst alphabet of holder's name(0001 - 9999)(A - Z)
13
Artificial Judicial Person(AAA - ZZZ)JFirst alphabet of holder's name(0001 - 9999)(A - Z)

Goods and Services Tax Identification Number (GSTIN) Format

ABCDEFGHIJKLMNOP
1
Type of GSTINDigits
2
123456789101112131415
3
Normal, Composite, CasualState (SS)10 Digit PAN Number(1-9, A-Z)(Z, 1-9, A,B,E-J)Check Digit
4
Input Service DistributorState (SS)10 Digit PAN Number(1-9, A-Z)SCheck Digit
5
Tax CollectorState (SS)10 Digit PAN Number(1-9, A-Z)CCheck Digit
6
Tax DeductorState (SS)10 Digit PAN Number(1-9, A-Z)DCheck Digit
7
Nonresident Foreign Taxpayers (NRI)State (SS)Year (YY)Country (CCC)0NFT
8
UN Bodies, Embassies, etc.State (SS)Year (YY)Country (CCC)0UNCheck Digit
9
Other Notified PersonsState (SS)Year (YY)Country (CCC)0ONP
10
Tax Return PreparerState (SS)Year (YY)0TRP
11
Temporary IDState (SS)Year (YY)0TMP

Vehicle Registration Certificate (RC) Format

ABCDEFG
1
Type of RCParts
2
123456
3
Private Vehicles (Normal RTO)State (SS)District Number (00 - 99)1, 2 or 3 letters (A-Z) except I and OSequential number (0 - 9999)
4
Private Vehicles (Bharat Series)2-Digit Number (00 - 99)"BH" (Short for Bharat)Sequential number (0 - 9999)1, 2 or 3 letters (A-Z) except I and O