RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Indian PAN number code
Expression
/[a-z]{3}[cphfatblj][a-z]\d{4}[a-z]/i
Description
First 5 letters, next 4 numerals, last character letter.This also validates the fourth character as one of C,P,H,F,A,T,B,L,J,G and it uses the case insensitive flag
Matches
AAAAA9999A | aaaaa9999a
Non-Matches
AAAAA99999 | 11111aaaaa
Author Rating: The rating for this expression. Rohan Khude
Source https://en.wikipedia.org/wiki/Permanent_account_number
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials