From: rebeka-catalina Date: Wed, 8 Nov 2017 15:14:35 +0000 (+0100) Subject: Grouping parantheses instead of capturing parantheses X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b4775812b8486636ce285062c80333ea9589b9c;p=friendica-addons.git Grouping parantheses instead of capturing parantheses --- diff --git a/nsfw/README b/nsfw/README index e42c2128..89dbec01 100755 --- a/nsfw/README +++ b/nsfw/README @@ -47,7 +47,25 @@ done with a single regex, which matches all of them: Another use case could be, that you are simply not interested in postings about christmas. - /christmas([-_ ]?(tree|time|eve|pudding))?/ + /christmas([-_ ]?(?:tree|time|eve|pudding))?/ + + +ATTENTION: + +It is absolutely important, that you use grouping +parantheses instead of capturing parantheses!! + +Grouping parantheses are: + + (?: ) + +If you use capturing parantheses, which are + + ( ) + +it will produce errors and the regex won't work and +at least your targets will not get collapsed. + 3)