Page 1 of 1
Replace Invalid Characters
Posted: 26 Mar 2014, 13:28
by 666de666
Hello,
Is there a possible way to replace the invalid characters in name while renaming with another characters? For example, when renaming we see that :, ? etc. are invalid characters... so Filebot omits those characters. Now, instead of deleting those characters, can I replace colon (:) with dash (-) or question mark (?) with a exclamation mark (!) and so on?
Thank you in advance.

Re: Replace Invalid Characters
Posted: 26 Mar 2014, 15:15
by rednoah
Yes.
e.g.
You will find numerous other examples in the docs.
Re: Replace Invalid Characters
Posted: 26 Mar 2014, 16:37
by 666de666
Worked like a charm. Thank you very much.
Re: Replace Invalid Characters
Posted: 11 Mar 2018, 09:42
by kolwe1984
Hi,
first, sorry for my bad english, I'm from Germany.
Thanks for your fine program, everything works fine, but I don't get it where I have to post the code you've mentioned above.
I would like to rename my films like this:
Original: Thor: Ragnarök
I would like to have it like this: Thor - Ragnarök.
So the ':' should be changed to ' -' with a blank before the line '-'
How can I do this?
Thank you very much for your help.
Re: Replace Invalid Characters
Posted: 11 Mar 2018, 09:53
by rednoah
Sure, the
{plex} format does what you want by default.
The first built-in movie format example does exactly that as well:
What format are you using?
Re: Replace Invalid Characters
Posted: 11 Mar 2018, 10:19
by kolwe1984
Oh, I'm so stupid... ^^'
Now, I think I've got it right. The format I'm using is: {n.colon(' - ')} ({y})
That should be fine, right now.
Thanks for your help

Re: Replace Invalid Characters
Posted: 25 Jul 2023, 06:41
by rednoah