Move/Copy Parts (6) additional functionality

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

Move/Copy Parts (6) additional functionality

Postby MilesOldfield » Wed Feb 10, 2021 11:19 am

I use BRU on classical music filenames and often run into a difficulty moving text that I want to keep from one location to another. Move/Copy Parts (6) would do the job, but you can select only the first or last X number of characters. How about making it able to select a range from x to y, as you can with Remove (5), and then insert the characters elsewhere. Often there is a workaround by shifting sections around but it gets complicated, if it's even possible. For example:

01 - Concerto in D Minor (RV 454) for Oboe, Strings, and Harpsichord - I. Allegro
02 - Concerto in D Minor (RV 454) for Oboe, Strings, and Harpsichord - II. Largo
03 - Concerto in D Minor (RV 454) for Oboe, Strings, and Harpsichord - III. Allegro

I want to move the RV numbers to the end of the title "...Harpsichord, RV 454 - ..."
It would be great if I could move "From 26 to 34 To pos. 70"

Thanks!
MilesOldfield
 
Posts: 11
Joined: Sat Nov 14, 2020 9:26 pm

Re: Move/Copy Parts (6) additional functionality

Postby therube » Wed Feb 10, 2021 9:38 pm

Test this out & see if it works for you:

1:RegEx, (checkmark) Simple
Code: Select all
Match:  %1(%2)%3 -%4
Replace:  %1%3, %2 -%4


01 - Concerto in D Minor (RV 454) for Oboe, Strings, and Harpsichord - I. Allegro
-> 01 - Concerto in D Minor for Oboe, Strings, and Harpsichord, RV 454 - I. Allegro

Same basic principle as, Rename files and folders to remove BRACKETS, so look through that for a bit of an explanation.
therube
 
Posts: 1025
Joined: Mon Jan 18, 2016 6:23 pm

Re: Move/Copy Parts (6) additional functionality

Postby MilesOldfield » Wed Feb 10, 2021 10:09 pm

Yes, that worked perfectly, in this specific case. I've struggled to use the RegEx a few times, sometimes I can get what I want, but I'm not technically inclined when it comes to coding.

There have been other occasions where it would have been convenient to have the Move/Copy Parts' operation expanded as I suggested. Any chance of that happening?

Thanks for the help!
MilesOldfield
 
Posts: 11
Joined: Sat Nov 14, 2020 9:26 pm

Re: Move/Copy Parts (6) additional functionality

Postby Luuk » Fri Feb 12, 2021 5:35 am

This another post not so helpful, but RegEx(1) can also move by the positions, but its harder because must always be doing the math.
So if moving characters 10-13 to 20-23, it must be like...
^(.{9})(.{4})(.{6})(.{4})(.*)
\1\3\4\2\5

Choosing with arrows to be much eaier, and Im thinking its probably easy programming, but not with graphical because how to fit ??
Luuk
 
Posts: 324
Joined: Fri Feb 21, 2020 10:58 pm

Re: Move/Copy Parts (6) additional functionality

Postby Luuk » Fri Feb 12, 2021 7:12 am

Actually that post is being over complicated, it should just be...
^(.{9})(.{4})(.{10})(.*)
\1\3\2\4
Luuk
 
Posts: 324
Joined: Fri Feb 21, 2020 10:58 pm


Return to Suggestions


cron