renaming format assistance

All about user-defined episode / movie format expressions
Post Reply
knoddix
Posts: 1
Joined: 28 Jun 2013, 03:04

renaming format assistance

Post by knoddix » 28 Jun 2013, 03:17

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

User avatar
rednoah
The Source
Posts: 16101
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: renaming format assistance

Post by rednoah » 28 Jun 2013, 04:21

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(/[,.'-]/)
:idea: Please read the FAQ and How to Request Help.

Post Reply