In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove everything after second_

craigja
11 - Bolide

Hi,

 

Can one of yo experts give me a way to remove everything after the 2nd _ in the following?

 

DER_FEX_HEDG

DER_FEX_INVH

DER_FEX_GEHR

 

So for the first row I want DER_FEX

3 REPLIES 3
mpennington
11 - Bolide

This should work for you: 

 

 

REGEX_Replace([Info], '(.*)_.*', '$1')

 

 

regex.jpg

messi007
15 - Aurora
15 - Aurora

@craigja,

 

This will do the job for you as well:

 

messi007_0-1618417183407.png

Attached the workflow,

Hope this helps!

Regards,

craigja
11 - Bolide

Brilliant, this solves the problem nicely!

Labels
Top Solution Authors