ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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
Meteor

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 ANTWORTEN 6
Raj
Nebula

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

mark done if solved.

Cherub7210
Meteor

@Raj  

 

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

Deano478
Quasar

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

Raj
Nebula

@Cherub7210 
share some sample data.

cjaneczko
Pulsar

@Cherub7210 The following should work in a filter formula.

 

 

image.pngimage.png

Cherub7210
Meteor

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

Beschriftungen
Top-Lösungs-Autoren