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

Split data

SCK
8 - Asteroid

I know I just got a solution, however, I have another add on to the input. Please help.

 

Input:

Account
10006 - Petty Cash - usable
10010 - Cash - Operating Account - Bank.
11000-11 - Accounts Receivable - Unit1
11000-12 - Accounts Receivable - Unit2
100D - Prepaid

200CD - General Expense

 

Output:

Account1Account2
10006Petty Cash - usable
10010Cash - Operating Account - Bank.
11000-11Accounts Receivable - Unit1
11000-12 Accounts Receivable - Unit2
100DPrepaid
200CDGeneral Expense

 

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @SCK 

 

Is it only D or can it be anything?

atcodedog05
22 - Nova
22 - Nova

Hi @SCK 

 

Here is a regex 

 

Regex Tool | Parse mode

 

 

([\w-]*) - (.*)

 

Output:

atcodedog05_0-1606303291750.png

Hope this helps 🙂

PhilipMannering
16 - Nebula
16 - Nebula

@SCK 

 

I think you could just replace the \d with \w for both @atcodedog05 and my earlier solutions.

 

Let us know if it works.

 

P

Labels
Top Solution Authors