Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Text to Column

elaenscetric
7 - Meteor

I was having a field like Field1:Field2@Field3

 

 

Now I need to split this into 3 columns like Field1, Field 2 & Field3 using :@

 

I have done this using TextToColumns tools. Now issue my second field may contain @ symbol and so I don't want to consider that as delimiter. For example Field1:Field2@@Field3 should be split likeField1, Field2@,  Field3

 

Anything using Formula for this ?

1 REPLY 1
OllieClarke
16 - Nebula
16 - Nebula

Hi @elaenscetric you can use RegEx to parse the 3 columns:

([^:,@]+?)[:,@](.+)[:,@]([^:,@]+)

 This will find parse into column1 everything up to the first one of ':,@' and parse everything from the final ':,@', and everything between them will come out as column 2

OllieClarke_1-1624616973078.png

Hope that helps,

 

Ollie

 

 

Labels
Top Solution Authors