Page 1 of 1

renaming format assistance

Posted: 28 Jun 2013, 03:17
by knoddix
hey i have been hunting around for a way to remove everything from the tv show names such as ,.'- and so forth and then set all names to use a capital for the first letter plus put just like 1 or 2 in front of the episode name so for example 1 Title
but at the moment i am getting 1 Title's or 1 Title-Title so basically i just need to know how to remove ' and - from the title any help would be appreciated

Re: renaming format assistance

Posted: 28 Jun 2013, 04:21
by rednoah
Plenty of examples here:
http://www.filebot.net/naming.html

Like this:

Code: Select all

{n.replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'")
.lowerTrail().replacePart(', Part $1')}
Remove trailing !?.

Code: Select all

t.replaceAll(/[!?.]+$/)
Remove any ,.'-

Code: Select all

t.replaceAll(/[,.'-]/)