Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Parsing a text string after a word

aberry0613
8 - Asteroid

Hello everyone.  I have not used the parse to text (outside of simple text to columns) or the RegEx tools much and i am struggling with the above.  I have a column  that looks like the data in the column labeled Original.  I need it to look like Columns c - f.  Every port starts with OC but I can not figure out how to do a starts with.  I tried to do an after "on" but since None has on in the word, that didn't work.

 

Thank you!

 

Allison

 

 

2 REPLIES 2
Slayer
5 - Atom
If you think about doing two passes, it’s actually quite straightforward:
First pass, use a Formula to remove the quotes, then split on the commas using Text-to-Columns
Then add another Text-to-Columns, splitting on the space.
Clean up using a Select tool to drop unwanted fields

(Sent from my phone, so can’t provide an example
NicoleJohnson
ACE Emeritus
ACE Emeritus

@aberry0613,

See attached for a solution I was just about to post that illustrates @Slayer explanation! :)

 

You'll potentially need to Cross-Tab your data once done to get it back into the same format as your example solution, so let us know if you need some additional assistance with that!


NJ

Labels
Top Solution Authors