regex for PAN from GSTIN

extracts PAN number from a valid GSTIN number

A PAN is a unique identifier issued to all judicial entities identifiable under the Indian Income Tax Act, 1961

This regex matches PAN number from GSTIN number for validation of PAN number embedded in GSTIN

A permanent account number (PAN) is a ten-character alphanumeric identifier, issued in the form of a laminated "PAN card", by the Indian Income Tax Department. This regex can extract the match number from a Goods and Services Taxpayer Identification Number (GSTIN).


Cheatsheet

expr usage
iHateRegex
by geon