Replacing colon with fullstops tv show names (24)

All about user-defined episode / movie / file name format expressions
Post Reply
wimwamspam
Posts: 5
Joined: 12 Oct 2013, 17:30

Replacing colon with fullstops tv show names (24)

Post by wimwamspam »

Hey everyone, I've spent a while trying to get this to work but to no avail and tried searching.

I currently use

{n} {s00e00} {t} [{vf}]
I am trying to rename the tv show "24" and since in their title they have times e.g

24 S07E09 Day 7 4:00 P.M.-5:00 P.M. [720p]

I am wanting to replace all colons with fullstops so it would look like

24 S07E09 Day 7 4.00 P.M.-5.00 P.M. [720p]

And is it possible to remove "Day 7"?

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

Re: Replacing colon with fullstops tv show names (24)

Post by rednoah »

Easy:

Code: Select all

{t.replace(':', '.').replaceAll(/^Day [0-9]/)}
:idea: Please read the FAQ and How to Request Help.
wimwamspam
Posts: 5
Joined: 12 Oct 2013, 17:30

Re: Replacing colon with fullstops tv show names (24)

Post by wimwamspam »

Thanks a lot, that works perfectly. :)
Post Reply