How can I take text from the middle of folder name & add it to the start of file name?

Advanced Renamer forum
#1 : 26/04-23 08:23
Posts: 1
For example. If I have 100 folders that look something like this:

Hello - Welcome -[T3RD001]-HI
Hello - UnWelcome -[T3RD002]-HA
Hello - WelcomeAgain -[T3RD003]-HO

Each one has [T3RD] Followed by 3 or 4 numbers inside the brackets next to it, I want to take all 100 of those folders and move the text [T3RD001] to the beginning of each folder in a rename.


[T3RD001] - Hello - Welcome
[T3RD002] - Hello - UnWelcome
[T3RD003] - Hello - WelcomeAgain
[T3RD004] - Hello - UnWelcomeOnceMore

How can I tell the App to take all the highlighted folders and move [T3RD001] etc from the middle of the file name to the start? I'm trying to put them all in order based on that [T3RD####] string of text.

Wracking my brain trying to figure this out, thanks.

26/04-23 08:23
#2 : 26/04-23 09:08
David Lee
David Lee
Posts: 1125
Replace: ^(.*) -(\[.*\]).*
with: \2 - \1
Use regular expressions

26/04-23 09:08