Regular Expressions 101

Community Patterns

1...34567...878

PAN CARD validation

7

Regular Expression
PCRE (PHP <7.3)

/
^[A-Z]{5}\d{4}[A-Z]$
/

Description

checks for valid PAN card for Indian users.

Submitted by karan thakkar - 10 years ago