Negative Range Values for the Remove (5) Rule

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

Negative Range Values for the Remove (5) Rule

Postby spacev2 » Thu Apr 04, 2024 9:38 pm

I find situations where I would like to remove specific characters from multiple files using the - Remove (5) Rule: From (Value X) to (Value X). However the issue arises where the characters in the file name are not equally distanced from the start of the file name, however they are equally distanced from the end of the file name. As a result I would like to have the ability to scroll backwards through the file name with negative values.

Thanks
spacev2
 
Posts: 22
Joined: Fri Dec 22, 2023 10:58 pm

Re: Negative Range Values for the Remove (5) Rule

Postby Admin » Fri Apr 05, 2024 3:07 am

Hi, thank you for the feedback! This is a good idea which we will add in the next releases. thanks!
Admin
Site Admin
 
Posts: 2355
Joined: Tue Mar 08, 2005 8:39 pm

Remove(5) for characters at x-distance away from end

Postby Luuk » Fri Apr 05, 2024 4:28 am

Im was thinking something like From==-4 and To==-6 to remove the 2-characters before the final-4.

But for now, with RegEx(1) having a checkmark for v2, can use a "Match" and "Replace" like...
.{2}(?=.{4}$)
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Negative Range Values for the Remove (5) Rule

Postby Admin » Sat Apr 06, 2024 1:13 am

Yes, so From:-4 To:-6 would remove

Code: Select all
F i l e N a m e
-8-7-6-5-4-3-2-1
    ^   ^

From N (-4) to l (-6) is removed (inclusive)

From:-3 To:-3 would remove third character from the end
From:-1 To:-1 would remove last character
From:-2 To:-1000 would remove all but last characterer
etc
Admin
Site Admin
 
Posts: 2355
Joined: Tue Mar 08, 2005 8:39 pm


Return to Suggestions


cron