Validation Rule for Indian PAN Card Number in Salesforce
Create a custom field in your Object with the name Pancard
Paste this validation formula in that Object’s Validation rule.
Validation Rule Formula:
NOT( REGEX( Pancard__c , “((([a-zA-Z]{5})\d{4})[a-zA-Z]{1})”))
Where:
[A-Z]{5} represents the first five upper case alphabets which can be A to Z.
[0-9]{4} represents the four numbers which can be 0-9.
[A-Z]{1} represents the one upper case alphabet which can be A to Z.
.