Batch Renamer: Remove only periods from file names

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
dhuseby
Posts: 7
Joined: 26 Jul 2006, 05:02

Batch Renamer: Remove only periods from file names

Post by dhuseby »

Is there a way to remove only periods that are NOT surrounded by digits?
For example...

Servant.Salamander.2.5.Rocks

to

Servant Salamander 2.5 Rocks

Using the batch renamer???
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

Yes, it is possible.

Turn on Regular expression, set Search for to

(?<=\D)\.|\.(?=\D)

and Replace with to space (or other character, for example underline).

Zero-width positive lookahead assertion is used...
http://www.regular-expressions.info/lookaround.html
Post Reply