mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Merge remote-tracking branch 'origin/master' into topic/dnthayer/ticket1947
This commit is contained in:
commit
cfe8e8f04b
19 changed files with 212 additions and 65 deletions
|
@ -237,13 +237,19 @@ Here is a more detailed description of each type:
|
|||
is false since "oob" does not appear at the start of "foobar". The
|
||||
``!in`` operator would yield the negation of ``in``.
|
||||
|
||||
Finally, you can create a disjunction (either-or) of two literal patterns
|
||||
You can create a disjunction (either-or) of two patterns
|
||||
using the ``|`` operator. For example::
|
||||
|
||||
/foo/ | /bar/ in "foobar"
|
||||
|
||||
yields true, like in the similar example above. (This does not presently
|
||||
work for variables whose values are patterns, however.)
|
||||
yields true, like in the similar example above. You can also
|
||||
create the conjunction (concatenation) of patterns using the ``&``
|
||||
operator. For example:
|
||||
|
||||
/foo/ & /bar/ in "foobar"
|
||||
|
||||
will yield true because the pattern /(foo)(bar)/ appears in
|
||||
the string "foobar".
|
||||
|
||||
.. bro:type:: port
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue