Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

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. 

Labels
Top Solution Authors