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.
SOLVED

How to import a csv file with non-standard delimiter?

YZHE
6 - Meteoroid

I have a csv file with delimiter as two pipes and a forward slash ||/

I know I can use Regex but can figure out the correct syntax.  

Any recommendations?  Thanks!

5 REPLIES 5
messi007
15 - Aurora
15 - Aurora

@YZHE,

 

Could you share a sample file. It will help us to parse it correctly.

 

Regards,

afv2688
16 - Nebula
16 - Nebula

Hello @YZHE ,

 

I came up with this solution, let me know what you think

 

Edit: Thank you @Emil_Kos, now it is added 🙂

 

Regards

Emil_Kos
17 - Castor
17 - Castor

Hi @afv2688,

 

You forgot to attach the input file. 

YZHE
6 - Meteoroid

Thanks @afv2688 

Your workflow returns what I need, and the mockup data you came up with match exactly the data I have. Thank you so much! 👍

 

BTW, I read a post before talking about using a RegEx Tokenize function to parse the data.  In that case the csv file delimiter was <|>

I tried to use the RegEx for ||/ as well, but just not working. 

I am attaching the workflow from the other post.  

echuong1
Alteryx Alumni (Retired)

For multiple character delimiters, I recommend using a replace to change it to a single delimiter. This makes it much easier for parsing!

 

In your case, I might use a formula with the following. You can then parse on a singe instance of | or another character of your choosing:

 replace([fieldname], "||/", "|"). 

Labels
Top Solution Authors