Alteryx Designer Desktop Discussions

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

Guidance Reg_Ex Match

Cherub7210
7 - 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 REPLIES 6
Raj
15 - Aurora

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

mark done if solved.

Cherub7210
7 - Meteor

@Raj  

 

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

Deano478
12 - Quasar

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

Raj
15 - Aurora

@Cherub7210 
share some sample data.

cjaneczko
13 - Pulsar

@Cherub7210 The following should work in a filter formula.

 

 

image.pngimage.png

Cherub7210
7 - Meteor

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

Labels