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

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 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels