Is it possible to replace multiple strings at once with MRT?
Example RegEx in Notepad++:
Find: (cat)|(dog)|(bird)
Replace: (?1Garfield)(?2Rantanplan)(?3Tweety)
will replace "cat" with "Garfield", "dog" with "Rantanplan" and "bird" with "Tweety"
Is this also possible with TC MRT?
MRT: multiple replacements at once with RegEx
Moderators: white, Hacker, petermad, Stefan2
MRT: multiple replacements at once with RegEx
Asus Maximus VIII Hero · Win10 Pro x64
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K
Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U
TC 11.02 32-bit #347308
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K
Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U
TC 11.02 32-bit #347308
Re: MRT: multiple replacements at once with RegEx
Wojtek,
Yup, press F1 in the MRT.
Search for: cat|dog|bird
Replace with: Garfield|Rantanplan|Tweety
HTH
Roman
Yup, press F1 in the MRT.
Search for: cat|dog|bird
Replace with: Garfield|Rantanplan|Tweety
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: MRT: multiple replacements at once with RegEx
The Help section, I know it very well.
That works fine as "normal" replacement, but not with RegEx.
My actual question is solely about RegEx, the cat & dog thing was just a simple example. I am planning to do lot more complicated stuff.
Nevertheless, thanks for your help.
So now, is there a "multi search & replace" with Regular Expressions?
Asus Maximus VIII Hero · Win10 Pro x64
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K
Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U
TC 11.02 32-bit #347308
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K
Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U
TC 11.02 32-bit #347308
Re: MRT: multiple replacements at once with RegEx
Wojtek,
Only what is documented:is there a "multi search & replace" with Regular Expressions?
RomanHelp file wrote:Subexpressions for search+replace
Text parts in round brackets are taken as subexpressions. Up to 32 subexpressions are supported now.
Example: To swap the title and interpret in the file name of an mp3 file, when they are separated by a dash (Title - Interpret.mp3), use the following options:
Search for: (.*) - (.*)\.mp3
Replace by: $2 - $1.mp3
Here $1 means the text in the first round bracket, and $2 the text in the second round bracket.
In "Replace by", use parameters \U, \L, \F, \n to convert from this point on to uppercase, lowercase, first char in word uppercase, and back to unchanged, e.g.
Search for: (.*) - (.*)\.mp3
Replace by: \U$2 - \L$1.mp3
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: MRT: multiple replacements at once with RegEx
No, but there is an [↷] Reload-Button.
After first renaming, press the reload button to load the files again for another step.
Also you can save and load renaming presets.
For more complicated renaming task we can integrate dedicated renaming tools into TC,
while TC can help us by launching such an tool with selected files or the wanted folder.
Myself use little portable Freeware like Siren by scarabee-software and den4b ReNamer.
Re: MRT: multiple replacements at once with RegEx
One can also export a list of files, change file names as necessary, and load the new list to rename the files to into MRT.
Roman
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.