Need to remove trailing period from files -not extension "."

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

Need to remove trailing period from files -not extension "."

Postby blades » Wed Aug 09, 2017 12:03 am

I have many files named with an extra PERIOD at the end, before the file extension. They are mixed in with other files, so I don't want to select them separately. If I was to select them separately, and the rule applied to every file, I could use the remove last or trim, etc.

Example: filename..txt ==> filename.txt.

When I select an entire folder, I can't figure out the combination to remove last period "if exists", not including the extension suffix.

Any help would be appreciated.

Thanks
blades
 
Posts: 4
Joined: Tue Aug 08, 2017 11:56 pm

Re: Need to remove trailing period from files -not extension "."

Postby Emerkamp » Wed Aug 09, 2017 12:05 pm

Options>> Ignore>> File extension

Repl: (3)
Replace:
..
With
.
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm

Re: Need to remove trailing period from files -not extension "."

Postby blades » Thu Aug 10, 2017 5:29 pm

Thanks for the follow-up. That suggestion I've done, but I only have 1 remaining "." at the end of the file (excluding the ".txt"). I want to remove the last period, but not all the periods in the filename. I use periods as spaces, because I don't like how "_" looks in a filename.

So I need to make:

test.filename.number.1..txt equal test.filename.number.1.txt

Without having to choose every file with the trailing period (which I could use the remove last n function) in the folder.

Thanks!
blades
 
Posts: 4
Joined: Tue Aug 08, 2017 11:56 pm

Re: Need to remove trailing period from files -not extension "."

Postby Emerkamp » Thu Aug 10, 2017 8:49 pm

Hi,

Did you try it to see.

This should replace any double .. to . and includes the . for file .ext

This will work as long as you only have double .. at the end of the name because of file ext.

If You have double .. in the middle of the names anywhere, we will have to try with Regex. also 3-4 good examples to find a pattern.
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm

Re: Need to remove trailing period from files -not extension "."

Postby blades » Fri Aug 11, 2017 11:36 pm

Yes, thank you. I did try, because I thought the same way you described it. It seems to ignore the "." that's part of the extension, as if it's not part of the "filename". I'll give it another go, and let you know.

Thanks again!
blades
 
Posts: 4
Joined: Tue Aug 08, 2017 11:56 pm

Re: Need to remove trailing period from files -not extension "."

Postby Emerkamp » Sat Aug 12, 2017 3:00 am

Hi,

Be sure to tick options as stated above. It works backwards from how you might think.
Tick= includes file ext.
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm

Re: Need to remove trailing period from files -not extension "."

Postby blades » Sun Aug 13, 2017 9:31 pm

Will do, thanks again for the help!
blades
 
Posts: 4
Joined: Tue Aug 08, 2017 11:56 pm

Re: Need to remove trailing period from files -not extension "."

Postby NealGar » Fri Nov 24, 2017 4:34 pm

Emerkamp wrote:Hi,

Be sure to tick options as stated above. It works backwards from how you might think.
Tick= includes file ext.


Yep, that makes it a little confusing lol.
NealGar
 
Posts: 1
Joined: Wed Nov 22, 2017 12:17 pm


Return to BRU Support