Regex Not Operator

by iiimriii, Thursday, August 08, 2019, 05:54 (122 days ago)
edited by iiimriii, Thursday, August 08, 2019, 05:57

Hi,

\good\

Above filters the rss feeds that has good in it.

I am trying to pick articles that does not contain "good"

Been trying with many variations without luck.

I would appreciate feedback

Regex Not Operator

by jtojnar, Thursday, August 08, 2019, 10:07 (122 days ago) @ iiimriii
edited by jtojnar, Thursday, August 08, 2019, 13:07

Currently only PCRE-style regex is supported, which does not support negating the expression. You can try to use negative lookahead like /^(?!.*(good)).*$/ but that will match posts that lack “good” in either the body or the title, so unless it is in both, it will not be filtered out.

This is one of my biggest gripes I have with selfoss. We have an issue tracking more advanced filtering.

Regex Not Operator

by jtojnar, Thursday, August 08, 2019, 13:06 (122 days ago) @ iiimriii

I have decided it to split the advanced filtering into a separate feature request in order not to block this to for selfoss 3.0.

Until then, you might be able to use something like http://feedrinse.com/index-old.php.

Regex Not Operator

by iiimriii, Thursday, August 08, 2019, 13:45 (122 days ago) @ jtojnar

Totally understood.
Thanks for fast response.

RSS Feed of thread
powered by my little forum