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

Alteryx Designer Desktop Discussions

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

Delimiter split

JBATAIDE
7 - Meteor

Hi,

 

I was trying to split by a delimiter which is double underscore (__) however, 'Text to columns' is also splitting by single underscore.

Is there a way to have the data only parsed by __ or do I have to change the __ to another character?

 

Please find the examples in attachment.

 

Thank you in advance,

Joao

5 REPLIES 5
LordNeilLord
15 - Aurora

Hey @JBATAIDE 

 

I would go with you second option and replace __ with a unique character then split

OllieClarke
15 - Aurora
15 - Aurora

Hi @JBATAIDE you can convert a double underscore to a pipe with this formula:

 

REPLACE([field],'__','|')

 

And then use this to split your columns

 

OllieClarke_0-1574794698681.png

 

edit: removed unnecessary regex

echuong1
Alteryx Alumni (Retired)

You can also use RegEx to achieve this. See attached for an example. 

ashissanpui
9 - Comet

Use formula tool to replace your specific character from the field.

Formula: Replace([Your field], '__','|')

Then use text to column with pipe '|'.

 

JBATAIDE
7 - Meteor

Thank you, that's a good solution. However, as I had the '__ ' delimiter in several columns I had to use the replace

 

Kind Regards,

Joao

Labels