Dash and Space

This is a place for users to discuss Altap Salamander. Please feel free to ask, answer questions, and express your opinion. Please do not post problems, bug reports or feature requests here.
bluish
Posts: 2
Joined: 02 Sep 2009, 15:35

Dash and Space

Post by bluish »

Hi
My friend has salamander 2.5! Seems to be an incredible piece of software!
Is it possible that Salamander could do the following for me?
I have an external Hard Drive which holds Twenty Thousand AVI Files.
My intention when naming them was to have the following exact format.
Example: SF120 – 01 – YESTERDAY – THE BEATLES
Unfortunately there are many typing errors resulting in the following.
ExampleS! SF120-01-YESTERDAY – THE BEATLES
SF120-01 – YESTERDAY-THE BEATLES
SF120 - 01 - YESTERDAY-THE BEATLES

Can salamander fix the spacing in between the DASH so as the finish as the first example, for all of the files please?
If it is possible can you help?
Thank You
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: Dash and Space

Post by Jan Rysavy »

Select all names and use the Plugins > Renamer > Batch Rename command with following settings:
Search for: "( *- *)|( *– *)" (without quotes)
Replace with: " - " (without quotes)
Turn on the Regular expression option.
Turn off the Only once in each name option.

Note: this will simply replace ALL dash characters (and surrounding spaces) with " - ".
So watch your files, there could be another dashes (for example in album name) you do not want to replace.

Note2: you have two different dash characters in your names, therefore the more complicated search for: "( *- *)|( *– *)"
renamer.png
renamer.png (43.35 KiB) Viewed 3989 times
Post Reply