Easily move last word to any poistion in the filename

Bulk Rename Utility How-To's

Easily move last word to any poistion in the filename

Postby shmellyman » Sat Oct 14, 2023 10:23 am

I have multiple files with different number of words using underscore. I would like to easily (easily modifiable solution) move the last word to between in any word i want.
ex: word1_word2_word3_word4 to
word1_word4_word2_word3

but also be able to use the same solution to do

word1_word2_word3_word4_word5_word6 to
word1_word2_word3_word4_word6_word5

thanks.
shmellyman
 
Posts: 9
Joined: Thu May 06, 2021 9:13 am

Re: Easily move last word to any poistion in the filename

Postby Admin » Sun Oct 15, 2023 5:56 am

Hi, with RegEx(1), if you enable "Simple" with checkbox, then

for
word1_word2_word3_word4 to
word1_word4_word2_word3

use
Match: %1_%2_%3_%4
Replace: %1_%4_%2_%3

for
word1_word2_word3_word4_word5_word6 to
word1_word2_word3_word4_word6_word5

use
Match: %1_%2_%3_%4_%5_%6
Replace: %1_%2_%3_%4_%6_%5
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm


Return to How-To