If Special Character Exist On Original FileName Replace With...

All about user-defined episode / movie / file name format expressions
Post Reply
peymanch
Posts: 55
Joined: 22 Jan 2017, 12:19

If Special Character Exist On Original FileName Replace With...

Post by peymanch »

hi
if exist special characters (f.e "Dubbed") on my filename , i want replace that with other special characters (f.e "Dubleh")
for example :
my files is:
1-Pride.and.Glory.2008.1080p.Farsi.Dubbed.mkv
2-Pride.and.Glory.2008.1080p.Farsi.mkv
special characters is: "Dubbed"
new filenames that i want:
1-Pride and Glory-[2008]-[1080p]-[Crime, Drama, Thriller]-[Dubleh].mkv
2-Pride and Glory-[2008]-[1080p]-[Crime, Drama, Thriller].mkv
my code is:
{n}-[{y}]-[{vf}]--[{genres}] ???
please help me
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: If Special Character Exist On Original FileName Replace With...

Post by rednoah »

Code: Select all

if (fn =~ /Dubbed/) ' [Dubleh]'
@see viewtopic.php?f=5&t=4191
:idea: Please read the FAQ and How to Request Help.
peymanch
Posts: 55
Joined: 22 Jan 2017, 12:19

Re: If Special Character Exist On Original FileName Replace With...

Post by peymanch »

thanks dear
Post Reply