Alteryx Designer Desktop Discussions

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

Help with Parsing Text within Column

kkkim
8 - Asteroid

Hi! I am trying to parse words/numbers into two columns. 

 

Example below

 

Shirt White 5,000 Pants Yellow 10,000 --> Need to separate into 2 columns 1) Shirt White 5,000 and 2) Pants Yellow 10,000

Pants Black 2,000 Shirt Purple 200,000 --> Need to separate into 2 columns 1) Pants Black 2,000 and 2) Shirt Purple 200,000

Shirt Red 1,000 Pants Green 13,000 --> Need to separate into 2 columns 2) Shirt Red 1,000 and 2)Pants Green 13,000

 

So Shirt and Pants are always present in a single column.  And they are essentially separators for the two columns.

 

Any ideas are much appreciated!

 

Thank you so much!!!

 

3 REPLIES 3
OllieClarke
15 - Aurora
15 - Aurora

Hey @kkkim RegEx is your friend here:

OllieClarke_0-1639676910421.png

 

This RegEx makes column 1 out of everything before the first space after a number, and column 2 out of everything after that space up to (and including) the final number

 

Hope that helps,

 

Ollie

kkkim
8 - Asteroid

This worked perfectly!!! Thank you!

OllieClarke
15 - Aurora
15 - Aurora

@kkkim glad I could help 🙂

Labels