Page 1 of 1
regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: March 31st, 2009, 5:48 pm
by elmstreet
Hi, I'm using SABnzbd+ on Leopard (latest version) and it seems that when I put this kind of expression : re:^24.720* to get only episodes of 24 in 720p from the RSS feed, it doesn't work.
I have programmed many filters like "desperate*720*" or "californication*720*" which work very well because there is no risk of confusion with other series.
For 24, ER or even Lost, if I put "24*720*" I get every 24th episode of a season for each serie. Obviously, I don't want that. ;-)
That's why I tried regexp. A friend of mine who is running SABnzbd+ on linux entered the exact same "re:^24.720*" and it works very well on its machine.
Is anyone experiencing problems with regexp on MAC OSX ?
Re: regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: April 1st, 2009, 5:33 am
by rAf
I never used regexp on rss filter but you should try this :
^24\. : matches only when beginning with "24."
(s07e|7x|7) : matches "s07e" or "7x" or "7"
(\d{2}) : matches 2 digits (00 to 99)
\.720.* : matches ".720*"
You can adapt if needed.
You can use these site
http://www.regular-expressions.info/jav ... ample.html to test your regexp.
Re: regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: April 2nd, 2009, 3:26 am
by elmstreet
thanks a lot, but it seems that it is the regexp principle that OS X doesn't understand...
every regexp must begin by "re:" to be understood as is.
I don't know why it works on Linux and not on Leopard.
Re: regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: April 2nd, 2009, 4:32 am
by rAf
I'll make some tests to check if regexp work on OSX.
Re: regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: April 2nd, 2009, 4:58 am
by rAf
I've made some tests and regexp work fine on OSX.
Don't forget to use "preview" to check what your regexp matches.
How many rules do you have for your feed ?
Re: regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: April 2nd, 2009, 9:17 am
by RiskyShift
elmstreet wrote:
That's why I tried regexp. A friend of mine who is running SABnzbd+ on linux entered the exact same "re:^24.720*" and it works very well on its machine.
Is anyone experiencing problems with regexp on MAC OSX ?
It seems unlikely that regex pattern is what you want, "^24.720*" means "find a string beginning with 24 (^24), then any single character (.) then 72 (72) followed by zero or more zeroes (0*)". * is not a wild card, and . doesn't mean ".", because . actually is a wild card for a single character.
Re: regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: April 6th, 2009, 8:55 pm
by DisasteR
for me i use this comfiguration for filtering :
running on linux
Re: regexp doesnt seem to work well on sorting RSS on MAC OS X
Posted: April 9th, 2009, 9:12 pm
by uzenet
i never understood how to use regexp and its syntax. i've been using regular wildcards (eg. 24.S07*) and rejecting "xvid" as my very first rule to parse through tvnzb.com's feed. works fine for me in grabbing HD eps except when there is the occasional REPACK and i might have 2 downloads. btw, what rss feed are you using for tv eps?