# HG changeset patch # User Matthew Wild # Date 1458214783 0 # Node ID c26b28c65d473205b219572ded33421cc71544da # Parent 9db4113d0cb5d1e4f67e71f466266cf8794b8fec mod_firewall: README: Document INSPECT's pattern matching ability diff -r 9db4113d0cb5 -r c26b28c65d47 mod_firewall/README.markdown --- a/mod_firewall/README.markdown Thu Mar 17 11:37:19 2016 +0000 +++ b/mod_firewall/README.markdown Thu Mar 17 11:39:43 2016 +0000 @@ -149,6 +149,11 @@ returned. If the path ends with '@name' then the value of the attribute 'name' will be returned. +You can use INSPECT to test for the existence of an element or attribute, +or you can see if it is equal to a string by appending `=STRING` (as in the +example above). Finally,you can also test whether it matches a given Lua +pattern by using `~=PATTERN`. + INSPECT is somewhat slower than the other stanza matching conditions. To minimise performance impact, always place it below other faster condition checks where possible (e.g. above we first checked KIND, TYPE