how to use multiple if by "and/or"

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

how to use multiple if by "and/or"

Post by peymanch »

hi
i want if original filename has one of many strings such as ("Duble" or "Dubbed" or "Dooble" or "doobleh" or "DOOBLEH") then use "Dubb" insted of them
what should i do?
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how to use multiple if by "and/or"

Post by rednoah »

Here you go:

Code: Select all

fn =~ /Duble|Dubbed|Dooble|doobleh|DOOBLEH/ ? /Dubb/ : null
:idea: Please read the FAQ and How to Request Help.
Post Reply