Page 1 of 1

RSS / Regex help

Posted: October 15th, 2015, 4:03 pm
by slvrdragn
I have a long series of keyword sets in the format of *word*one|*word*two*|*word*three* etc
I put in that but it doesn't seen to be matching against the RSS feed. One of them are very large, but i'm not seeing anything in the logs to indicate an issue. The UI saves the regex in the space provided. Using regex101, i was able to confirm that the format seems legit, just not processing the way I expect.

Is there any grouping or keys needed to make this work?
I tried the below as well.
"*word*one|*word*two*|*word*three*"
(*word*one|*word*two*|*word*three*)

any suggestions appreciated.

Re: RSS / Regex help

Posted: October 16th, 2015, 11:32 am
by shypike
Did you use the Python style expressions?
regex101 supports that.
Your regex should be something like this:
re:word_one|word_two|word_three
First of all, you must prefix a regex with "re:", otherwise SABnzbd will use simple searching.
Second, you don't need (and should not use) the leading and trailing * for every "word".

Re: RSS / Regex help

Posted: October 16th, 2015, 12:16 pm
by slvrdragn
So i've removed the leading/trailer *, leaving the ones in the word spaces. I haven't tried with re: yet, but i can.

Re: RSS / Regex help

Posted: October 16th, 2015, 12:24 pm
by slvrdragn
Initial test seems to have made a change. Thanks.

Re: RSS / Regex help

Posted: March 15th, 2017, 1:16 pm
by p123456
Some more help wold be apreciated!

What is the best way to deal with PROPPER, REAL, INTERNAL, whatever... releases?
I'm trying Re:^Show\.S[0-9]{1,2}E[0-9]{1,2}\.?(REAL|PROPER|REPACK|iNTERNAL){0,4}\.720p\.HDTV\.x264-+

According to regex101 i get a match on the first instance but i want it to match all.
Show.S01E08.720p.HDTV.x264-x
Show.S01E08.PROPER.720p.HDTV.x264-x
Show.S01E08.REPACK.720p.REAL.HDTV.x264-x
Show.S01E08.iNTERNAL.720p.HDTV.x264-x
Show.S01E08.REAL.720p.HDTV.x264-x
Show.S01E08.PROPER.iNTERNAL.720p.HDTV.x264-x

Re: RSS / Regex help

Posted: March 16th, 2017, 8:39 am
by p123456
regex101 tests the first line.

But i think iv'e got it!
^Show\.S[0-9]{1,2}E[0-9]{1,2}\b(.REAL|.PROPER|.REPACK|.iNTERNAL){0,3}\b\.720p\.HDTV\.x264-+