Selectively remove

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Selectively remove

Postby bensonave » Fri Oct 10, 2008 7:32 pm

Hi all,

:arrow: My first post

Have a list of files,
123.jpg do not change
123_1_.jpg => 123_1.jpg
123_10_,jpg => 123_10.jpg
1234.jpg do not change
1234_1_.jpg => 1234_1.jpg
1234_10_.jpg => 1234_10.jpg

Only need to change the files with file names ending with _, then remove the last letter of _.

Right now I have to process these manually, with ???_.jpg, then remove the last letter, then ????_?_.jpg, then ????_??_.jpg. I feel kind of dumb :cry: when I was doing this manually, can someone point me the right direction :idea: ?

Appreciated.

Peter
bensonave
 
Posts: 5
Joined: Fri Oct 10, 2008 7:21 pm
Location: California

Re: Selectively remove

Postby GMA » Fri Oct 10, 2008 8:05 pm

Hi, bensonave:
Well, one way could be using the "Replace (2)" function as follows:

REPLACE: _.jpg
WITH: .jpg

Before renaming go to "Options > Ignore" and activate "File extensions". Now you can rename.
After you're done, remember to deactivate "File extensions", so it won't conflict with future renaming operations.
Cheers :D

Gabriel.
GMA
 
Posts: 91
Joined: Sun Dec 02, 2007 1:30 pm
Location: Argentina

Re: Selectively remove

Postby bensonave » Sat Oct 11, 2008 1:29 am

Gabriel, Thanks. That was pretty smart. :idea:
bensonave
 
Posts: 5
Joined: Fri Oct 10, 2008 7:21 pm
Location: California

Re: Selectively remove

Postby GMA » Sat Oct 11, 2008 7:05 am

Hi, Peter; glad it was of help. Here's another (better) way, which uses only one step. Use "RegEx (1)" as follows:

MATCH: (.*)_$
REPLACE: \1

That way you don't need to activate/deactivate "Options > Ignore > File extensions".
It also allows you to rename multiple file formats all in one step, because is independent of the extension :wink:.
Best regards,

Gabriel.
GMA
 
Posts: 91
Joined: Sun Dec 02, 2007 1:30 pm
Location: Argentina

Re: Selectively remove

Postby bensonave » Mon Oct 13, 2008 5:34 pm

Gabriel, Thanks Again.
bensonave
 
Posts: 5
Joined: Fri Oct 10, 2008 7:21 pm
Location: California


Return to BRU Support