From 3855f878ddf9e3ae912a7a51afb678733ab5aa05 Mon Sep 17 00:00:00 2001 From: hoergen Date: Sat, 26 Sep 2020 10:43:48 +0200 Subject: [PATCH] added some examples --- advancedcontentfilter/doc/advancedcontentfilter.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/advancedcontentfilter/doc/advancedcontentfilter.md b/advancedcontentfilter/doc/advancedcontentfilter.md index 7a7f58a9..edd54217 100644 --- a/advancedcontentfilter/doc/advancedcontentfilter.md +++ b/advancedcontentfilter/doc/advancedcontentfilter.md @@ -36,16 +36,13 @@ A post will be collapsed if at least one rule matches, but all matching rule nam ## Examples - - -## Expression Syntax - -1. To block specific domains `body matches "/\\.spiegel\\.de/"` +1. To block specific domains `body matches "/\\.exmaple\\.com/"` 2. To block everything that contains the words `body matches "/Guten Morgen/" 3. To block every occurence of the word facebook with a space in front and after the word `body matches "//s facebook/s /"` 4. To colapse every post that contains more than 1 image `body matches "/(?:(?:(?:\\[url(?:=.*)?\\])?\\[img(?:=.*)?\\].*\\[\\/img\\]\\s*(?:\\[\\/url\\])?)\\s*){2}/"` +## Expression Syntax ### Supported Literals -- 2.39.5