In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Guidance Reg_Ex Match

Cherub7210
メテオール

i need to test if the string starts with a PR or SD and 7 to 8 digits long. Could you give me inputs how i  should  this in formula tool?

6件の返信6
Raj
ネビュラ

@Cherub7210 
use this
REGEX_Match([YourFieldName], "^(PR|SD)\d{7,8}$")

mark done if solved.

Cherub7210
メテオール

@Raj  

 

i tried your solution but its not pulling anything when i used this as a filter 

Deano478
クエーサー

@Cherub7210 can you share some sample data of what works and what doesnt

Raj
ネビュラ

@Cherub7210 
share some sample data.

cjaneczko
パルサー

@Cherub7210 The following should work in a filter formula.

 

 

image.pngimage.png

Cherub7210
メテオール

thank you all for your inputs and i was able to solve this using a different approach :)

ラベル
トップのソリューション投稿者