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

Help removing text after specific character and replacing - ALTERYX DESIGNER HELP

emiafshar
8 - Asteroid

Hey guys,

 

I need a way to remove the below text after the _id= and replace it with a ]

 

The number of characters is not always the same and the text before is also not the same i.e. in some instances you have counterparty_id, or security_id etc. 

emiafshar_0-1615546519715.png

I need the text at the end of the field to go from [p_counterparty_id=58M] to [p_counterparty_id] and [p_loan_security_id=P93960AG0] to [p_loan_security_id] etc etc.

 

Any ideas?! 🙂

7 REPLIES 7
Emil_Kos
17 - Castor
17 - Castor

Hi @emiafshar,


I have created a soution for you:

Emil_Kos_0-1615547082394.png

 

 

Output:

Emil_Kos_1-1615547088536.png

The old column can be removed I just used it for tests.

emiafshar
8 - Asteroid

Thanks Emil, what if I wanted to keep the _ID? So the output would be [p_counterparty_id]

 

Emil_Kos
17 - Castor
17 - Castor

Hi @emiafshar,


Dang.

 

Please see corrected version 🙂

 

Emil_Kos_0-1615548114253.png

 

emiafshar
8 - Asteroid

That workflow seems to be the same as the previous one! 😁

afv2688
16 - Nebula
16 - Nebula

Hello @emiafshar ,

 

You can easily achieve this by using regex.

 

If you need any clarification about the process let me know.

 

Untitled.png

 

Regards

Emil_Kos
17 - Castor
17 - Castor

Hi,

 

The screen was incorrect the workflow was good 😄

 

Emil_Kos_1-1615548595083.png

 

emiafshar
8 - Asteroid

Thank you so much!

Labels