Rename RegEx works on Files but not Directories

I use the following rename preset on files to reorder based on where a hyphen falls in the name. For example,

Type: Regular Expression

From (.*) - (.*) - (.*)\.(.*)

To \2 - \3 - \1.\4

Example From: [Author - Title - Description] -> [Title - Description - Author]

The rename preset works fine on files but not on directories (folders). How do I fix this?

TIA,
Scott
Sarasota, Florida, USA

Your regex looks for a . in the filenames. Do the folders you are renaming have . in their names?

Ah, thanks, Leo. It's always the simple things.

I elimintaed the handling for a file extension and instead selected "ignore extension" in the rename dialog box.

It now works, thank you!

For those that care, the new preset is

From:

(.*) - (.*) - (.*)

To:

\2 - \3 - \1
1 Like