]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
More about RegexDefaultOptions.
authorYann Ylavic <ylavic@apache.org>
Thu, 29 Aug 2019 10:55:43 +0000 (10:55 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 29 Aug 2019 10:55:43 +0000 (10:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1866066 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/core.xml

index 49f06b3de202b3149363ebc0986ccbecc4c8082e..52bae0816570d83f8a2a1bfb7f477c71396eac49 100644 (file)
@@ -4218,17 +4218,26 @@ Protocols h2 http/1.1
             <dd>'$' matches at end of subject string only.</dd>
         </dl>
         <highlight language="config">
+# Reset all default/defined options
+RegexDefaultOptions none
 # Add the ICASE option for all regexes by default
 RegexDefaultOptions +ICASE
 ...
+# Add the ICASE option to the already applicable ones
+RegexDefaultOptions +ICASE
 # Remove the default DOLLAR_ENDONLY option, but keep any other one
 RegexDefaultOptions -DOLLAR_ENDONLY
 ...
 # Set the DOTALL option only, resetting any other one
 RegexDefaultOptions DOTALL
 ...
-# Reset all defined options
-RegexDefaultOptions none
+# Set the DOTALL and ICASE options only
+# Options are applied in order and blindly, so:
+#   RegexDefaultOptions DOTALL ICASE
+# would not work as possibly expected (ICASE clears DOTALL)
+RegexDefaultOptions none +DOTALL +ICASE
+# or "simply"
+RegexDefaultOptions DOTALL +ICASE
 ...
         </highlight>
     </usage>