I’m writing this after asking about this and then finding the answer myself… So in order to match regular expressions with look around, I finally got the following working. I think the biggest part was i didn’t have the beggining and trailing /
I also don’t have word boundary’s because apart from Mr. Andr0iD , I don’t expect it more likely these keywords to be side by side without a space than to appear randomly as part of a episode title…
I am now just gonna do all capturing with the following tags. I’ve set all qualities as acceptable (hdtv, web-dl etc)
/^(?=.*10bit)(?=.*1080p).*$/i
Match 10bit and 1080p - This is my most preferred format and eventually I want to archive 1080p HEVC 10bit rips. I didn’t add hevc in the expression because I’ve only seen 10bit in conjunction with HEVC to begin with.
/^((?=.*265)|(?=.*hevc))(?!.*1080p).*$/i
MATCH 265 OR hevc AND NOT 1080p - This rule will match anything this isn’t 1080p and is still hevc. IE 720p and under.
Please note that ?! denotes DO NOT MATCH and ?= means MATCH
/^(?!.*xvid)(?!.*1080p)(?!.*720p).*$/i
Finally, This rule says that it will not accept xvid releases in 720p or 1080p. ( I Don’t have 4k qualities enabled). IE, it filters out all the xvid releases in the SD standard definition range.
So, Ultimately these three rules, once you set all profiles enabled and order by resolution will start with ANY NON XVID release in standard definition.
It will upgrade to 720p if it finds one in HEVC or 265
Then it will upgrade to 1080p if it finds one in 10bit.
I’ve left the original post where I asked how to do this out of Humility.
Hello, I’m trying to write a regular expression to match “10bit” & “1080p”
I’ve tried (?=.*t)(?=.*1080p).*
and it works at regex101 but not in sonarr.
I want to set it along with NOT 1080p AND (hevc OR 265) which in regex was (?!.*1080p)(?=.*hevc).*
so that it will grab whatever hevc release comes along in proceeding quality upto 720p but it will only match 1080p releases in 10bit.
I’ve always wanted a way to apply tags to profiles but if i can set those two “tags” above then I can set a whole bunch of others and just use the ANYQUALITY profile.
Thanks
edit… had a thought to just set two expressions, 1080p.*10bit
and 10bit.*1080p
but those don’t match either, do i have to enable regex somewhere in the settings?