Page 1 of 1

Change cases after dash (songtitle)

PostPosted: Tue May 27, 2014 3:18 pm
by csiblade
Hello,

I searched this forum, but could not find any answer for my 'problem'.

I need tot rename music files.

From
19-the_stunned_guys_and_art_of_fighters_-_united_by_hardness-sob
to
The Stunned Guys & Art of Fighters - United By Hardness
or
The Stunned Guys & Art of Fighters - united by hardness

is quiet simple....

but to

The Stunned Guys & Art of Fighters - United by hardness

so that the song title has only an upper case at the first word.


Thx in advance.

csiblade

Re: Change 1st Char's Case after Space-Space

PostPosted: Mon Jun 09, 2014 9:20 pm
by truth
BRU's regex doesnt support Case-Translations
#4Case doesnt support translating only single-char locations

If you're determined to use BRU, you could create a CharTrans similiar to:
_,-,_,a= ,-, ,A
_,-,_,b= ,-, ,B
_,-,_,c= ,-, ,C
.... etc Replace _'s with space (this forum removes leading spaces)

Since you already have a method that creates?:
The Stunned Guys & Art of Fighters - united by hardness
You could make another run with CharTrans to achieve the desired effect.