Page 1 of 1

how to use multiple if by "and/or"

Posted: 22 Feb 2018, 09:43
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?

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

Posted: 22 Feb 2018, 13:34
by rednoah
Here you go:

Code: Select all

fn =~ /Duble|Dubbed|Dooble|doobleh|DOOBLEH/ ? /Dubb/ : null