Exclude special character from file name

Any questions? Need some help?
Post Reply
horstepipe
Posts: 5
Joined: 06 Jan 2017, 11:51

Exclude special character from file name

Post by horstepipe »

hey
is there a way to exclude a character from file name and replace it with something else?
In my environment, I can't have "&" in my filenames, so I'd like Filebot to automatically make

Code: Select all

Mike & Molly
to

Code: Select all

Mike and Molly
Best regards
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude special character from file name

Post by rednoah »

e.g.

Code: Select all

'Mike & Molly'.replace('&', 'and')
:idea: Please read the FAQ and How to Request Help.
horstepipe
Posts: 5
Joined: 06 Jan 2017, 11:51

Re: Exclude special character from file name

Post by horstepipe »

Thank you
So this is only possible in command line or where do I exactly have to execute this command?
At the moment I'm using only the GUI of filebot.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude special character from file name

Post by rednoah »

Please read up on custom formats:
http://www.filebot.net/naming.html

e.g.

Code: Select all

{n.replace('&', 'and')} - {s00e00} - {t}
:idea: Please read the FAQ and How to Request Help.
horstepipe
Posts: 5
Joined: 06 Jan 2017, 11:51

Re: Exclude special character from file name

Post by horstepipe »

Thank you!
Post Reply