Page 1 of 1

Batch Renamer: Remove only periods from file names

Posted: 26 Jul 2006, 06:01
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???

Posted: 26 Jul 2006, 10:30
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