Page 1 of 1

Help with RSS feed and a basic regexp

Posted: February 21st, 2013, 6:42 am
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

Re: Help with RSS feed and a basic regexp

Posted: February 21st, 2013, 11:00 am
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

Re: Help with RSS feed and a basic regexp

Posted: February 21st, 2013, 12:30 pm
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

Re: Help with RSS feed and a basic regexp

Posted: February 22nd, 2013, 4:09 pm
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.