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.
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