Page 1 of 1

Removing only a certain string

PostPosted: Wed Sep 21, 2016 3:17 am
by KnowoneKnows
Hey there and thanks in advance for any help that can be provided. :o)

I have about 900 files I need to rename.

They are image files, and have been optimized. The problem is that when they were optimized, the filenames were changed. For example,
"100-dollar-bill-1024x437.jpg" was renamed to
"100-dollar-bill-1024x437@2x.jpg"

I tried using "Remove" 5 in BRU, and chose Chars = @2x, but it didn't work right. So I tried Chars = "@2x". When I did this, the result was "100-dollar-bill-104437.jpg", as it removed the "x" from in between 1024 and 437.

I've done the best I can. May I have some suggestions?

Thanks! :o)

Re: Removing only a certain string

PostPosted: Wed Sep 21, 2016 3:36 am
by Admin
Hi, did you try removing the last 3 chars? thanks

Re: Removing only a certain string

PostPosted: Wed Sep 21, 2016 3:39 am
by Admin
Or use entry

@,2,x=

in Special (14) -> Character Translation

Re: Removing only a certain string

PostPosted: Wed Sep 21, 2016 5:15 am
by KnowoneKnows
Thanks for the speedy assistance! :o)

I tried deleting the last 3 characters, and

"100-dollar-bill-1024x437@2x.jpg" got renamed to

"100-dollar-bill-1024x47.jpg"

I'll have to go back to try your other option.

Thanks again. :o)

Re: Removing only a certain string

PostPosted: Wed Sep 21, 2016 5:19 am
by KnowoneKnows
I next tried the #14 option, and
100-dollar-bill-1024x437@2x.jpg

became

100-dollar-bill-1024x4372x.jpg

:o(

Thanks anyway.

Re: Removing only a certain string

PostPosted: Wed Sep 21, 2016 6:32 am
by KnowoneKnows
Hi! :o)

I tried again to remove the last 3 characters, and this time it appears to have worked. :o)

I'll recheck it tomorrow, as I'm really tired now, but I wanted to post this so nobody would be bothered trying for a fix.

Thanks so much for volunteering to support a free app!

Re: Removing only a certain string

PostPosted: Wed Sep 21, 2016 7:13 am
by KnowoneKnows
Couldn't wait! ;o)

Works fine!

Thanks! :o)