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