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

Extract ANY/ALL text from string that includes underscore

kahnailee
5 - Atom

Sample string: This is sample_text_hello and goodbye

Desired output: sample_text_hello

 

I've tried RegEx but that seems to work for text AFTER the underscore. I can't use text-to-columns as I need the text before the underscore, of which is variable in length.

 

Suggestions?

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @kahnailee 

 

Give this formula a try.

 

Workflow:

atcodedog05_0-1643743296032.png

 

Hope this helps : )

 

kahnailee
5 - Atom

@atcodedog05 , this is perfect, thank you!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @kahnailee 

Cheers and have a nice day!

Labels
Top Solution Authors