Replacing colon with a dash in episode titles

All about user-defined episode / movie / file name format expressions
Post Reply
penguinopph
Posts: 2
Joined: 21 Dec 2021, 16:26

Replacing colon with a dash in episode titles

Post by penguinopph »

Hi all, I want to set FileBot up to automatically replace colons with dashes in my episode titles, but I can't quite figure it out. I found this post giving the code, but I can't figure out how to integrate it into the rest of my code, which is simply
{n}.{s00e00}.{t}
Where does the
.replaceAll(/[:|]/, " - ")
code fit into the rest?

Thank you.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Replacing colon with a dash in episode titles

Post by rednoah »

e.g.

Code: Select all

{ n.colon(' - ') }.{ s00e00 }.{ t.colon(' - ') }
:idea: Please read the FAQ and How to Request Help.
penguinopph
Posts: 2
Joined: 21 Dec 2021, 16:26

Re: Replacing colon with a dash in episode titles

Post by penguinopph »

rednoah wrote: 21 Dec 2021, 16:50 e.g.

Code: Select all

{ n.colon(' - ') }.{ s00e00 }.{ t.colon(' - ') }
Wow, that was super simple. Thank you!
Post Reply