I hope Fox would not mind if I open this discussion.
One of the features I like a lot in TT-Rss is the possibility of using regular expressions to create filters, because it allows me to weed out articles I am not interested in, once I identified a pattern.
Unfortunately I do not have an IT background and regex are quite intimidating, so finding the right combination required me a lot of trial and error.
Below some examples of the rules I use, with the expected results. I would really appreciate your feedback (on how to improve those) or maybe add yours, so that others can benefit.
(best(.*)deals)
this matches anything that starts with best and ends with deals, no matter if there is anything inbetween (for example “return to school” or “daily”). I use this to deal with what is usually sponsored post.
(offert[a|e](.*)amazon)
this is a different take on the above. In Italian, deal is offerta, while deals (plural) is offerte, so this rule allows me to match any post about one offer (offerta) or more (offerte) on amazon
videogame(.s)
this is similar to the above, but for matching singular and plural words in English, because this matches both videogame and videogames
pok[eé]mon
this one matches two different letters within a word. It is usefull in this case because it prevents not filtering a word if it is written differently.
\bpixel\b (\bwatch\b|\bbuds\b)
with this rule you can match one word (pixel in this case) with another, chosen between two different ones (watch and buds). The result is that I can filter anything about pixel watch or pixel watch (which I am not interested in) and keep anything about pixel (the phone), or watch (either as verb or as noun).
[a-z]
this is triggered whenever there is any letter in the pattern. Seems quite extreme, but i needed something to activate the ttrss-catchup-old plugin
Please let me know what you think and if there is any additional regex you use. I think it would be great if you could also include some “real life” examples.
Thank you in advance for your time.
Regards