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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

regex

yilingchen02
8 - Asteroid

Hi there, I have a column that looks like this

 

COE_12345-abc-def.xlsx

ROA_abtee-ecb-dex.xlsx

ABC_rbcw-qbc-abvx.xlsx

 

How can I isolate the first word before _?

 

COE

ROA

ABC

 

Thanks,

Yiling

 

2 REPLIES 2
caltang
17 - Castor
17 - Castor

If you want to use REGEX, select PARSE and type in:

^(.{3})

 

Otherwise, you can opt for a Text-to-Columns tool for an easier time.

 

Hope this helps! If it does, kindly mark this reply as the accepted solution.

 

Thanks,

Cal

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

@yilingchen02 did my comment help solve your problem? If yes, could you kindly mark it as solved / accepted solution so that others may find it as well? Thank you!

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors