Page 1 of 1

Rename : Move Brackets and all content

PostPosted: Tue Nov 09, 2021 2:52 am
by Razyel95
Hello! Hope someone can help me with this, I need to move the Brackets sections (all with numbers) to the end of the file.

EX: [3747373] My filename.mp3
EX: [454437] My filename.mp3
EX: [32893] My filename.mp3

------------------------------------------------

EX: My filename [3747373].mp3
EX: My filename [454437].mp3
EX: My filename [32893].mp3

Keep in mind the Brackets have a blank part that change to other side.

Move beginning [numbers] to the end

PostPosted: Tue Nov 09, 2021 6:22 am
by Luuk
For the examples, can use RegEx(1) with a Match and Replace like...
(\[\d+\]) (.+)
\2 \1

Re: Move Brackets and all content

PostPosted: Tue Nov 09, 2021 11:13 am
by Admin
If you are looking for maybe "easier" syntax than the standard regex syntax, in RegEx (1) enable Simple, then use :

Match : [%1] %2
Replace : %2 [%1]

Re: Move beginning [numbers] to the end

PostPosted: Tue Nov 09, 2021 5:38 pm
by Razyel95
Luuk wrote:For the examples, can use RegEx(1) with a Match and Replace like...
(\[\d+\]) (.+)
\2 \1


Thanks! This worked perfect to me.

Re: Move Brackets and all content

PostPosted: Tue Nov 09, 2021 5:40 pm
by Razyel95
Admin wrote:If you are looking for maybe "easier" syntax than the standard regex syntax, in RegEx (1) enable Simple, then use :

Match : [%1] %2
Replace : %2 [%1]


Thank you! This is amazing, simple code, lots of save time! That helped a lot!