Rename only Part of a filename

Bulk Rename Utility How-To's

Rename only Part of a filename

Postby markggriffiths » Tue Feb 02, 2021 10:41 am

I have my files saved as 2021.01.15 - Name.pdf my scanner save all my files with the date formatted as 2021-01-15 - Name.pdf, so I want to change the first two - (dashes) to . (dots) but no change the dash between the date and Name. Is there a way of doing this? Many thanks, M
markggriffiths
 
Posts: 2
Joined: Wed Jun 21, 2017 10:42 am

Re: Rename only Part of a filename

Postby Luuk » Tue Feb 02, 2021 11:38 am

Greetings Mark. The RegEx(1) with checkmark in "Inc.Ext" conducts like this, with the Match and Replace like...
(^\d\d\d\d\.\d\d\.\d\d - .+?)-(.+?)-(.*)\.pdf
\1.\2.\3
Luuk
 
Posts: 700
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To