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

regex? fullpath to filename only

PassION_es
10 - Fireball

Hello Alteryx,

 

I want to get only the filename (highlighted in yellow) of the output from batch macros (consolidated sheets/workbook).  Is this can be done in Regex as well? Thanks

 

 

3 REPLIES 3
ChrisTX
16 - Nebula
16 - Nebula

Try this

 

Screenshot 2024-05-20 053954.png

 

Chris 

binu_acs
21 - Polaris

@PassION_es  regex for getting only the file name

REGEX_Replace([FileName], '.*\\(.*)\|\|\|.*', '$1')

image.png

PassION_es
10 - Fireball

Thanks @ChrisTX @binu_acs 

Labels
Top Solution Authors