Page 1 of 1

if {vc} in [HEVC h265 H265 x265 X265] then ... else ...

Posted: 10 Jul 2016, 16:49
by Tbright
Hi,

I know this has to be easy, but I have not been able to find the right way, sorry about that

I want to save my movies in a special folder (Movies (HEVC)) if they have the new video codecs (vc returns HEVC, h265, x265....). What I did is

{vc=='HEVC' ? 'Movies (HEVC)' : 'Movies'} and it works when vc is HEVC

How should I change that to make it work if vc is any of the aforementioned codecs?

Thanks

TB

Re: HEVC h265 H265 x265 X265

Posted: 10 Jul 2016, 17:12
by rednoah
Regex:

Code: Select all

{vc =~ /HEVC|265/ ? 'Movies (HEVC)' : 'Movies'}

Re: HEVC h265 H265 x265 X265

Posted: 10 Jul 2016, 19:02
by Tbright
Thanks, I would never have guessed that
TB