We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Using text to columns while keeping the delimiter

BillyL14
8 - Asteroid

Hi 

Is there any way of separating the value in once cell, like 'value!' into 2 different cells, like 'value' and '!'?

Everytime I try the delimiter (!) is gone.  There are no delimiters in quotes in my data.

 

Thank you

7 REPLIES 7
atcodedog05
22 - Nova
22 - Nova

Hi @BillyL14 ,

 

You can use Regex tool parse mode to split them use below 

 

(.*)(!)

Output:

 

atcodedog05_0-1602089057682.png

Tool config:

atcodedog05_1-1602089128337.png

 

Hope this helps 🙂

jdunkerley79
ACE Emeritus
ACE Emeritus

As with @atcodedog05  suggestion, I would use the Regex Tool but I would use it in Tokenize mode with an expression like:

 

([^!]+|!)

 

 

This allows you to do the same as Text To Columns and either break to columns or rows

 

Sample attached

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @BillyL14 

 

Cheers and happy analyzing 😀

BillyL14
8 - Asteroid

Hi @atcodedog05 

Thanks for that.

I have several values with different delimiters in this column of data, for example value!, value+, value#, I need to separate them all and keep the delimiter, I have tried putting them all in together and individually, I get an error when I put in the plus sign individually and when I put them all in the expression together, do you know how to do this?

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @BillyL14 

 

Try this expression. In the same workflow.

 

 

 

 

(\w*)(\W)

 

 

 

Output:

atcodedog05_1-1602094722090.png

 

Hope this helps 🙂

atcodedog05
22 - Nova
22 - Nova

Guess that worked 🙂

 

Happy to help 🙂

 

Cheers and happy analyzing 😀

 

BillyL14
8 - Asteroid

thanks

Labels
Top Solution Authors