Rename parts of file name

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 331
Joined: Sun Aug 07, 2022 8:48 pm

Rename parts of file name

Post by sk2107 »

Hello,

I have few files which have the same name format (all of them have date in same location without dashes in between). so I want to add dashes between these numbers.

for example:


BU#20080409(005).jpg will be BU#2008-04-09(005).jpg
BU#20080603.jpg will be BU#2008-06-03.jpg


Thank you
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Rename parts of file name

Post by therube »

Enable Regular expressions (& Ignore extension - only so you don't have to deal with them)

Code: Select all

Old: ^BU#(\d{4})(\d{2})(\d{2})(.*?)
New: BU#\1-\2-\3
find 4 digits, find 2 digits, find 2 digits, discard anything else that follows
stick dashes between the 3 sets of digits

(In Everything 1.5alpha, you can save that as a Preset, if you use it often.)
sk2107
Posts: 331
Joined: Sun Aug 07, 2022 8:48 pm

Re: Rename parts of file name

Post by sk2107 »

Nice. Thanks a lot.

Best Regards
Post Reply