Regular Expressions 101

Community Patterns

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