Please try this ^[1-9][0-9]{5}[a-zA-Z]{3}\d{2}
Quote:I was tried PAN based validation and did some changes for the same,but it didn't worked.
[RegularExpression(@"^([0-9]){5}([a-zA-Z]){3}([0-9]){2}?$", ErrorMessage = "Entered CAN is Invalid")]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)