Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate 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 

binuacs
21 - Polaris

@PassION_es  regex for getting only the file name

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

image.png

PassION_es
10 - Fireball

Thanks @ChrisTX @binuacs 

Labels
Top Solution Authors