diff --git a/script-reference/types.rst b/script-reference/types.rst index 3096ba98d..de038fd50 100644 --- a/script-reference/types.rst +++ b/script-reference/types.rst @@ -1167,6 +1167,15 @@ the entire string. If you want the pattern to match if it's *anywhere* in the string, you can use the usual regular expression operators such as ``/.*foo.*/``. +.. note:: + + The :zeek:attr:`&default` attribute is ignored for this type of lookup. + If none of the patterns matches a given string, the result will be an empty + :zeek:type:`vector`, regardless of :zeek:attr:`&default`. Neither is the + :zeek:attr:`&default_insert` attribute used. It's not an error to have + either of these attributes, however. They'll still be in effect when + indexing with :zeek:type:`pattern` values. + .. note:: Internally, Zeek matches a table's patterns in parallel using a lazily