piighost/in-pan

Indian permanent account number, five letters then four digits then a letter, with the fourth position restricted to the entity type letters, P for an individual, C for a company, H for a Hindu undivided family, F for a firm and so on. That restriction is what lifts the pattern above a generic five-letter, four-digit token. Narrowing the fourth position to P alone would keep individuals only and drop company PANs. No collision.

Label: IN_PAN

Pattern

\b[A-Z]{3}[ABCFGHJLPT][A-Z]\d{4}[A-Z]\b

Must be caught

Must be left alone

Tags: in, government-id, identity

Download the detector as TOML