Pan Number Validation
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Vapour02
8 - Asteroid
‎07-24-2023
11:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello all I'm trying to validate the Pan Number in Alteryx but unable to find how to do that. Pan number is of 10 characters the format is first 5 Alphabets 4 numbers and then 1 alphabet. Now I want to validate if all the data is in correct format or not. Please help.
Labels:
- Labels:
- General
- Tips and Tricks
2 REPLIES 2
LisaL
Alteryx Alumni (Retired)
‎07-25-2023
03:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This is easiest to do using Regex, however the exact string used is not something I have handy. It will be something like '\d{5}[a-zA-Z]{4}\d{1}' to be used in conjunction with Regex_match function. Review the Help section on that function together with your favorite guide to regex (I like https://regex101.com/) I wish you the best of luck!
Lisa LePome
Principal Support Engineer -- Knowledge Management Coach
Alteryx, Inc.
Principal Support Engineer -- Knowledge Management Coach
Alteryx, Inc.

‎07-25-2023
11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you so much. I explored and tried a bit different one - ^[A-Z] {5}[0-9]{4}[A-Z]{1}$ and it worked.
