how to use multiple if by "and/or"

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

how to use multiple if by "and/or"

Post by peymanch » 22 Feb 2018, 09:43

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: 16269
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah » 22 Feb 2018, 13:34

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