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.
Replace Invalid Characters
Re: Replace Invalid Characters
Yes.
e.g.
You will find numerous other examples in the docs.
e.g.
Code: Select all
{t.replaceAll(/[`´‘’ʻ]/, "'")}
Please read the FAQ and How to Request Help.
Re: Replace Invalid Characters
Worked like a charm. Thank you very much.
Re: Replace Invalid Characters
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.
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
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?
The first built-in movie format example does exactly that as well:
Code: Select all
n.colon(' - ')
Please read the FAQ and How to Request Help.
Re: Replace Invalid Characters
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
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
Please read the FAQ and How to Request Help.