How to verify PAN card?

前端 未结 15 1431
予麋鹿
予麋鹿 2021-02-13 11:46

How to check the validation of edittext for pan card like \"ABCDE1234F\". I am confused how to check the the validation for this. Please help me guys. I will appreciate any kind

15条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-13 12:29

    Regular Exp of PANCARD- '/[A-Z]{5}\d{4}[A-Z]{1}/i';

    use the following if you use angular js

    Controller

    $scope.panCardRegex = '/[A-Z]{5}\d{4}[A-Z]{1}/i';
    

    HTML

    
    

提交回复
热议问题