This forum has been archived. All content is frozen. Please use KDE Discuss instead.

rssfeedplugin svn09102006 regex

Tags: None
(comma "," separated)
imported4-jochen
Registered Member
Posts
5
Karma
0

rssfeedplugin svn09102006 regex

Wed Oct 11, 2006 4:29 pm
Howdy,

thanks for developing the rss feed plugin. It works nicely, but can someone please help me to feed it a negated regex?
^ or ! doesn't seem to do the trick.

Assumed a rss feed offers "xyz a" and "xyz a b" how do I teach the plugin just to download "xyz a" and not "xyz a b"?

Cheers,
Jochen.
skyphyr
Registered Member
Posts
36
Karma
0
OS

Sun Oct 29, 2006 4:54 pm
hmmm good point Jochen - thanks - it seems that because there will almost inevitably be other characters which meet the [^(blah)] criteria.

I'll look how to include the ability to add a not into it - I'll probably just go for any string which leads with a ! becomes the inverse of the regex without the leading !.

Until that's done you could just add "xyz a b" into the reject filters - though I appreciate this isn't ideal so I'll be sure to implement the ! alternative.

Cheers,

Alan.
skyphyr
Registered Member
Posts
36
Karma
0
OS

Sat Nov 25, 2006 4:04 pm
HI Jochen,

Sorry it's taken so long - I just added support for ! into svn.

Just prefix any regex with ! and it'll make sure it doesn't match. (i.e. it's the same as doing the expression without the leading ! and inverting the results).

Cheers,

Alan.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]