Search found 3 matches

by rockas
20 Nov 2015, 16:09
Forum: Episode / Movie Naming Scheme
Topic: Capitalize first letter from first word only
Replies: 3
Views: 6042

Re: Rename - Please help

Very good! You can make it slightly shorter by using negative indices:
{n[1..-1].lower()}

@see http://mrhaki.blogspot.tw/2009/03/use-negative-index-in-groovy-lists-to.html

Oh thank you very much!!! :D :D Just an example from your response...


{n[0].upper()}{n[1..-1].lower()} {sxe} - {t[0 ...
by rockas
20 Nov 2015, 15:04
Forum: Episode / Movie Naming Scheme
Topic: Capitalize first letter from first word only
Replies: 3
Views: 6042

Re: Rename - Please help

I have managed to do the above with this format

Code: Select all

{n[0].upper()}{n[1..(n.length()-1)].lower()} {sxe} - {t[0].upper()}{t[1..(t.length()-1)].lower()}
by rockas
20 Nov 2015, 14:30
Forum: Episode / Movie Naming Scheme
Topic: Capitalize first letter from first word only
Replies: 3
Views: 6042

Capitalize first letter from first word only

I want to rename my files by making capital only the first letter of the first word of series name and episode title.

For example i want to rename this

How.I.Met.Your.Mother.1x03-The.Sweet.Taste.of.Liberty.720p.DIM.mkv


To that

How i met your mother 1x03 - The sweet taste of liberty.mkv ...