Help with RSS feed and a basic regexp

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
SebNYD
Newbie
Newbie
Posts: 6
Joined: February 8th, 2012, 5:30 am

Help with RSS feed and a basic regexp

Post by SebNYD »

Hello,

I'm trying to use a regexp to match everything that starts with "FF" in an RSS feed.

So I have put the following filter :
re:^FF

Oddly (?), it seems to pick up anything that starts with "F" and not just what starts with "FF" :(

Does anybody have an idea on how I could make this work ?

Thanks for your help,

Seb
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: Help with RSS feed and a basic regexp

Post by sander »

I checked with

re:^De

and it correctly returns all matches that start with "De".

I don't have a feed where I can test FF
SebNYD
Newbie
Newbie
Posts: 6
Joined: February 8th, 2012, 5:30 am

Re: Help with RSS feed and a basic regexp

Post by SebNYD »

sander wrote:I checked with

re:^De

and it correctly returns all matches that start with "De".

I don't have a feed where I can test FF
The issue must be because this is the same letter twice (I have no issue with other filters).
I tried :
re:^(FF )
It seems to be working :)

Thanks,

Seb
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help with RSS feed and a basic regexp

Post by shypike »

Like Sander, I cannot reproduce your issue.
Looking at the implementation code, it's sounds very very unlikely.
That's just not how Python regular expressions would behave.
Your work-around is a valid alternative though.
Post Reply