Page 1 of 1

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

Posted: 23 Jan 2017, 06:28
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

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

Posted: 23 Jan 2017, 14:50
by rednoah

Code: Select all

if (fn =~ /Dubbed/) ' [Dubleh]'
@see viewtopic.php?f=5&t=4191

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

Posted: 23 Jan 2017, 16:37
by peymanch
thanks dear