#1 2016-10-12 20:10

Lauraq
Member
Registered: 2016-10-02
Posts: 21

uppercase / lowercase problem

Hi smile

My Mp3s are like it:

lorenzo jovanotti - La Gente Della Notte.mp3

all the mp3s have uppercase / lowercase in different way. Is possible have, all my mp3 with the first 2 letters of the name and surname of the singer, in uppercase and the title all lowercase without the fist letter, for example:

Lorenzo Jovanotti - La gente della notte.mp3

Thanks smile

Last edited by Lauraq (2016-10-12 20:11)

Offline

#2 2016-10-13 09:53

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 2,634

Re: uppercase / lowercase problem

There is no simple way to do this, but you can achieve it with a Pascal Script rule:

const
  Delimiter = ' - ';
var
  DelimPos, SecondPartPos: Integer;
begin
  DelimPos := WidePos(Delimiter, FileName);
  if DelimPos > 0 then
  begin
    SecondPartPos := DelimPos + WideLength(Delimiter);
    FileName := WideCaseCapitalize(WideCopy(FileName, 1, DelimPos - 1)) + Delimiter +
      WideLowerCase(WideCopy(FileName, SecondPartPos, WideLength(FileName)));
    if SecondPartPos <= WideLength(FileName) then
      FileName[SecondPartPos] := WideUpperCase(FileName[SecondPartPos])[1];
  end;
end.

Offline

#3 2016-10-13 10:22

Lauraq
Member
Registered: 2016-10-02
Posts: 21

Re: uppercase / lowercase problem

Fantastic, thanks smile

Offline

#4 2018-03-13 12:24

DJKissly
New Member
Registered: 2018-03-13
Posts: 4

Re: uppercase / lowercase problem

Good afternoon, Almost the same question. In the early version, without any problems, renamed mp3 files for convenience as follows: "ARTIST - name". The artist or group was in uppercase, and the track name after "-" in lowercase. Now I do not know how to do it. Help me please.

Offline

#5 2018-03-13 12:45

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 889

Re: uppercase / lowercase problem

Hi DJ and welcome.

FROM:
Artist Name - Track Name.Ext (or any case iteration)
TO:
ARTIST NAME - track name.Ext



Try:
RegEx rule

http://www.den4b.com/wiki/ReNamer:Rules:RegEx
http://www.den4b.com/wiki/ReNamer:Regul … ipulations



Express: ^(.+) - (.+)$
Replace: \U$1 - \L$2




HTH? big_smile


For more help and how-to's  read our fine Wiki.
If ReNamer had helped you, please donate a coin to Denis or buy a Pro license for commercial use. (Lite vs Pro)

Offline

#6 2018-03-13 15:57

DJKissly
New Member
Registered: 2018-03-13
Posts: 4

Re: uppercase / lowercase problem

Many thanks! Works great!)

Offline

Board footer

Powered by FluxBB