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 of help.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
@Raghunandan is right. You can use regex. If you see wiki entry for Permanent_account_number(India) you'll get the meaning of the PAN card number formation. You can use the pattern to check for its validity. Relevant portion is as follows:
PAN structure is as follows: AAAAA9999A: First five characters are letters, next 4 numerals, last character letter.
`
Hope this helps.
You can use Regular Expression with pattern matching
You can test regex @
http://java-regex-tester.appspot.com/
http://docs.oracle.com/javase/tutorial/essential/regex/
Hi for pan card verification you need to execute two step process in your project.
1.) create a form and get user pan card number
2.) upload user pan card image
After complete both step make a logic in backend for verification. For this you can follow below tutorial:
https://www.lelocode.com/posts/pan-verification-in-laravel-using-baidu-ocr-universal-text-recognition-%28high-precision-version%29
Try This, hope will work
As per Income Tax Act, the guidelines for PAN Card are as follows:
Format For Pan Card : Eg. ABCDE0123F
Income Tax PAN card is issued under Section 139A of the Income Tax Act. The PAN structure is as follows: AAAPL1234C: The five (5) first characters are letters, followed by four (4) numerals, and the last (10th) character is a letter. The fourth (4th) character informs about the holder of the card.
For more Information regarding Pan card : https://en.m.wikipedia.org/wiki/Permanent_account_number
For Code Validation : "[A-Z]{5}[0-9]{4}[A-Z]{1}"
For Java :
where isPanCardValid() is static method, which accepts string as parameter(String pan_number) input from User and matches with PanCard Pattern and returns the value as true or false.
pan card validation
regex : /(^([a-zA-Z]{5})([0-9]{4})([a-zA-Z]{1})$)/