Alteryx Designer Desktop Discussions

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

Regex Help

MROGK
8 - Asteroid

How can I use Regex to parse the below into 3 different columns?

 

AVERY 7-65H ND MC KENZIE

LANDPLUM 2-35H{ ND DIVIDE

PENELOPE 6-33H APO ND MC KENZIE

 

 

I need it as 

 

AVERY 7-65H                     ND       MC KENZIE

LANDPLUM 2-35H{            ND       DIVIDE

PENELOPE 6-33H APO     ND      MC KENZIE

 

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @MROGK I mocked up a workflow that produces the output you describe. Let me know what you think?

MROGK
8 - Asteroid

Thank you. What if I have strings with other states as well along w/ND, say MT, VT,etc. How do I need to add the other states to the expression? 

JosephSerpis
17 - Castor
17 - Castor

Hi @MROGK I amended the regex this version will split the string on the first occurrence of two uppercase characters with a space between them. 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels