Regular Expressions 101

Community Patterns

1...45678...901

Community Library Entry

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 - 11 years ago