Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Regex Tool

Gamaliel
10 - Fireball

Hello,

 

I would appreciate your help in using the correct regex code for this one.

 

Input:

Gamaliel_1-1628072735097.png

 

Output

 

Gamaliel_0-1628072675683.png

 

Thank you so much. Please see attached workflow.

 

9 REPLIES 9
Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @Gamaliel ,

 

What is the logic behind ?

atcodedog05
22 - Nova
22 - Nova

Hi @Gamaliel 

 

Why is 1000a account code and 401k account name ? is there a pattern ?

Gamaliel
10 - Fireball

@Jean-Balteryx @atcodedog05  we would like to separate the codes from the account names except for 401K since it is not an account code per se. The goal again is to provide a regex code that will separate the account codes from the account names with the exception of 401K since it is not a code but an account description/name

Gamaliel
10 - Fireball

401k is not a code. Basically , we would like to provide exceptions for the strings which are numeric but should not be treated as account codes. E.g. 401k, it is not a code but it is an account description for retirement funds.

atcodedog05
22 - Nova
22 - Nova

Hi @Gamaliel 

 

Do you have a list of exceptions similar to 401k?

Gamaliel
10 - Fireball

@atcodedog05 currently we dont have such scenario yet. We are now building a workflow which is flexible to every set of general ledgers so that whenever we encounter this issue, our workflow will easily address them.

Jean-Balteryx
16 - Nebula
16 - Nebula

Here is how you cna do it using a referential for exceptions !

Gamaliel
10 - Fireball

Thanks on this @Jean-Balteryx . this is helpful. Though we need to list out the exceptions manually first, still this is helpful since this is just limited to rare circumstances. 

atcodedog05
22 - Nova
22 - Nova

Hi @Gamaliel 

 

My take on this. I am modifiying the expection so that it doesnt get added in account code.True, exception list will be required.

 

Workflow:

atcodedog05_0-1628076324428.png

 

Hope this helps : )

 

Labels