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 parse and text to column

556891a
5 - Atom

Hi everyone,

 

I have a question about how to use text to column and regex to split the following example.

Ex:

George178-11Mo   to George, 178, 11, Mo

BRE22-564Y.         to BRE, 22, 564, Y

 

Those have different lengths and formats, so I have no idea how to do that.

Thanks!

2 REPLIES 2
markcurry
12 - Quasar

See the attached workflow, the following RegEx should split your input...

(\D+)(\d+)\-(\d+)(\D+)

 

 

grossal
15 - Aurora
15 - Aurora

Hi @556891a,

 

here is a way to do this:

 

grossal_0-1587410852147.png

Output:

 

grossal_1-1587410872362.png

 

 

Let me know if this works with your other data or if we need to adapt something. Workflow attached.

 

Best

Alex

Labels
Top Solution Authors