Skip to main content
New Participant
Mar 26, 2022 7:19 PM UTC
Question

pannumber validation?

i want to validate pan number ?

    3 replies

    stefanhelzle0001
    Brainy
    Mar 26, 2022 8:30 PM UTC

    OK. What is a pan number? What did you try? What failed?

    gopalk2865
    Participating Frequently
    Mar 27, 2022 4:39 AM UTC

    Hi, in order to validate pan number ,you would need to know the criteria for a valid pan number. For example it should have ten characters ,the first 5 characters should be upper alphabets ,etc.Then you can write an expression to check all the criteria.

    tanvirs0003
    Inspiring
    Mar 28, 2022 6:17 AM UTC

    use regexmatch function in the validation part.. then you need to define regex pattern, like first five charachers will be upper case alphabets, followed by 4 numbers & end one upper case alphabet. if the regexmatch function returns true then no error, else show error message