MultiRenameTool: RegEx Remove parts and change dot to space
Moderators: Hacker, petermad, Stefan2, white
MultiRenameTool: RegEx Remove parts and change dot to space
Hello
I want method to quick rename my movies in one round with Total Commander with built-in multi rename tool.
But I stuck. I want movies like this:
La.boum.1980.720p.Anything.Any.Word
To become this:
La Boum (1980)
My friend made this to achieve the renaming
Search: (\.)(\d{4}).*
Replace: $2
La.boum (1980)
But how can I replace the dots (.) with space?
I want method to quick rename my movies in one round with Total Commander with built-in multi rename tool.
But I stuck. I want movies like this:
La.boum.1980.720p.Anything.Any.Word
To become this:
La Boum (1980)
My friend made this to achieve the renaming
Search: (\.)(\d{4}).*
Replace: $2
La.boum (1980)
But how can I replace the dots (.) with space?
Re: RegEx for multi rename
FROM:BullFrog wrote: La.boum (1980)
But how can I replace the dots (.) with space?
La.boum (1980)
TO:
La boum (1980)
DO:
- select file(s)
- open Mutirename Tool
- Search&Replace
Search: .
Replace: ~
[_] E
[_] RegEx
Search for an dot and instead of ~-sign enter a space.
- - -
And the RegEx for
La.boum.1980.720p.Anything.Any.Word
Anything.Any.Word.FourDigits.Anything.Any.Word
to
La.Boum (1980)
Anything.Any.Word (FourDigits)
would be
Search: (.+)\.(\d{4}).*
Replace: $1 ($2)
[_] E
[X] RegEx
And what If there were more dots? What if the movie title had more than 2 words? Or maybe just one?Ovg wrote:Search for (.*)\.(.*)\.(.*\d{4}).*
Replace with $1 $2 ($3)
Titanic Or Scream.Queens.Horror.Heroines.Exposed.2014.720p.BluRay.x264
@Stefan2
I really want to make it work in one rename with one regexp.
Code: Select all
Search for : '\.+'
Replace with : ' '
And give a try
It only replaces dots with spaces, but does not format the text: Title (date) and remove the rest.nsp wrote:[x]RegExpCode: Select all
Search for : '\.+' Replace with : ' '
And give a try
You have to do it with two renaming steps, if you want to do it in TC.
Or utilize "Edit names..." from MRT and use a text editor with scripting...
Or use script wdx plugin and a VBS script...
Or best use a dedicated renaming tool, where you can add several renaming steps and then rename at once.
But performing two times a renaming with TC might be suitable enough, depending how often you will need such operations.
1) shorten the name
2) change the dots
Or utilize "Edit names..." from MRT and use a text editor with scripting...
Or use script wdx plugin and a VBS script...
Or best use a dedicated renaming tool, where you can add several renaming steps and then rename at once.
But performing two times a renaming with TC might be suitable enough, depending how often you will need such operations.
1) shorten the name
2) change the dots
I regularly rename TV recordings of OnlineTVRecorder.com and use two renaming profiles in TC for this task. It's quite easy to apply them one after the other since you can select a profile with F2 and reload the file list (in MRT) with F5.
So, in essence
Regards
Dalai
So, in essence
- mark the files
- call the MRT (Ctrl+M)
- press F2 there and select the renaming profile
- press Enter to rename the files
- press F5 to reload the file list into the MRT
- press F2 again and select the second renaming profile
- press Enter
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
2BullFrog
Small vbs script for you
https://yadi.sk/d/-mz8f4GBfmut8
Create button from code below
Select files to rename and press button
Small vbs script for you
https://yadi.sk/d/-mz8f4GBfmut8
Create button from code below
Code: Select all
TOTALCMD#BAR#DATA
Rnm.vbs
%F (.+)\.(\d{4}).*
shell32.dll,115
Rename Files
-1
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Thank you!Ovg wrote:2BullFrog
Small vbs script for you
https://yadi.sk/d/-mz8f4GBfmut8
Create button from code belowCode: Select all
TOTALCMD#BAR#DATA Rnm.vbs %F (.+)\.(\d{4}).* shell32.dll,115 Rename Files -1
Near perfect, but it only works for FILES and not for FOLDERS, is it possible to implement to work for both?
Last edited by BullFrog on 2015-04-05, 17:57 UTC, edited 1 time in total.
Thanks for your effort!
I've tested it now, and tested to rename the folders too, but strangely files works perfectly, but it renames folders wrong.
Folder rename example:
The.Interview.2014.1080p.Bluray.Dts.X264.hun-trinity
To
The Interview 2014 (1080).hun-trinity
File example
The.Interview.2014.1080p.Bluray.Dts.X264.hun-trinity.mkv
To
The Interview 2014 (1080).mkv
File example without file extension
The.Interview.2014.1080p.Bluray.Dts.X264.hun-trinity
To
The Interview 2014 (1080).hun-trinity