Multiple replace question

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
markcoutinho
Junior Member
Junior Member
Posts: 14
Joined: 2004-11-29, 12:55 UTC

Multiple replace question

Post by *markcoutinho »

Here's my problem:
I got files that are named like this:

Ramones ft. MC Hammer - A Swan In The Lake.jpg

I want to change these into another case like this

Ramones ft. MC Hammer - A swan in the lake.jpg

So, actually, everything after the - (hyphen?) sign should be lower case apart from the first letter of the first word.

How can I do this in the multiple replace box?
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Just for this example you have to put something like this in Rename mask for file name:
[N1-25][L][N26-]
But here you always have to count the length of the beginning. I don't know how to make a general rule for any filename where the dash can be in different places.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

Hi,

you can do this in 4 steps:

Code: Select all

Filename   Search             Replace         Options 
========================================================= 
[N]        . (dot)             ### 
[N]        (.* - )(.{1})(.*)  $1$2.$3         RegEx + Subst 
[N][L]     . (dot)            <delete> 
[N]        ###                . (dot)
Reload the filenames after each step. Don't write the (dot), it is only a hint that there is a dot to enter (i can hardly see it on my screen).

Best regards

Clas
#14041
markcoutinho
Junior Member
Junior Member
Posts: 14
Joined: 2004-11-29, 12:55 UTC

Post by *markcoutinho »

Well, if it's that simple, why didn't I think of it myself?
:wink:

Thanks for this extremely usefull explanation!
User avatar
Peled
Junior Member
Junior Member
Posts: 86
Joined: 2003-03-22, 05:43 UTC
Location: Israel

Good Lord - Seems I have a lot to learn regarding Search/rep

Post by *Peled »

I am using it a lot to rename ,mp3 songs. I though I am a sofisticated
user, of it. Now I know better.
You forced me to take a look at the Help file, and I realize how many commands we got there.
thank you for enlighting me. ( sorry for the speling . My main language is Hebrew)
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Peled
In the new TC (6.5x) you can also use data from .wdx plugins during multirenaming, e.g you can use Artist, Album, Track, etc.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply