I want to make progressive regex of PAN number.
My PAN number regular expression is "/^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}$/"
Format of PAN number -'AAAAADDDDA' A- Alphabets, D- Digits
Why I want to make progressive regex?
I am using angular directive to set validations on input field. In that I am facing problem to my PAN regex but it works fine for progressive regex. Check here my plunker
Referred question angularjs validate input and prevent change if invalid
Can any one please suggest me how to do this?
Thank you.