Multi Rename Tool - changing the dots into spaces

English support forum

Moderators: Hacker, petermad, Stefan2, white

ymmv
Junior Member
Junior Member
Posts: 34
Joined: 2004-03-06, 12:22 UTC

Post by *ymmv »

Your solution works very well, except you lose the extension at the end. I guess I should have made my example file name "Filename.Divided.Into.Multiple.Bits.v1.80.plus.nonsense.exe" instead of just "Filename.Divided.Into.Multiple.Bits.v1.80.plus.nonsense". I wanted to get rid of the dot and the "nonsense" bit in the filename itself, but I want to keep the extension. Sorry for the confusion! :oops:
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

2ymmv, that is probably not possible with the regular expressions built in in Total Commander. Unless one or more assumptions may be made. Can I assume the file name always contains a version number?

Code: Select all

Search for:   "\.((v)\.*((\d+\.)*\d+)[^.]*(\.[^.]*)*)?"
Replace with: " $2$3$5"
(enable RegEx)
File names without ".v<number>" will have all dots removed from full file name (name incl. extension)

Image: http://img182.exs.cx/img182/5907/tc650multirenametoolexample002.png
Last edited by white on 2005-02-01, 19:38 UTC, edited 1 time in total.
ymmv
Junior Member
Junior Member
Posts: 34
Joined: 2004-03-06, 12:22 UTC

Post by *ymmv »

Wow! That last one did the the trick. It's all I wanted in one fell swoop! Good job! :D
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Happy to be of service :lol:
User avatar
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

2white
You are the RegEx guru, man! :lol:
Post Reply