Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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