X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=advancedcontentfilter%2Fdoc%2Fadvancedcontentfilter.md;h=44ad8c657259a61fa780833d7fc3c51b788ad013;hb=54436370f22d200c7dc4eee2e745738a7dd2eec1;hp=55e52ef4f95f173d0412564122ba1d854ddcf961;hpb=0fda21d6375a58639ac681cd46aea24fe8ca02e4;p=friendica-addons.git diff --git a/advancedcontentfilter/doc/advancedcontentfilter.md b/advancedcontentfilter/doc/advancedcontentfilter.md index 55e52ef4..44ad8c65 100644 --- a/advancedcontentfilter/doc/advancedcontentfilter.md +++ b/advancedcontentfilter/doc/advancedcontentfilter.md @@ -34,6 +34,14 @@ If the expression using a post variables returns `true`, the post will be collap A post will be collapsed if at least one rule matches, but all matching rule names will be displayed above the collapsed content. +## Examples + +1. To block specific domains `body matches "/\\.example\\.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 @@ -506,4 +514,4 @@ You can also retrieve the variables of a specific post by pasting its URL below - \ No newline at end of file +