RSS / Regex help

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
slvrdragn
Newbie
Newbie
Posts: 17
Joined: April 29th, 2013, 12:38 pm

RSS / Regex help

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RSS / Regex help

Post 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".
slvrdragn
Newbie
Newbie
Posts: 17
Joined: April 29th, 2013, 12:38 pm

Re: RSS / Regex help

Post 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.
slvrdragn
Newbie
Newbie
Posts: 17
Joined: April 29th, 2013, 12:38 pm

Re: RSS / Regex help

Post by slvrdragn »

Initial test seems to have made a change. Thanks.
p123456
Newbie
Newbie
Posts: 2
Joined: March 15th, 2017, 12:15 pm

Re: RSS / Regex help

Post 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
p123456
Newbie
Newbie
Posts: 2
Joined: March 15th, 2017, 12:15 pm

Re: RSS / Regex help

Post 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-+
Post Reply