mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Expr: Implement string in table[pattern] of X
Not sure how useful this is (and the implementation isn't optimized in any way), but seems reasonable for consistency. Vern suggested that set[pattern] can already be achieved via set_to_regex(), so left out any set[pattern] variants.
This commit is contained in:
parent
9ae99cdc44
commit
c72d4a4427
5 changed files with 42 additions and 3 deletions
|
@ -2,9 +2,13 @@
|
|||
indexing empty, 0
|
||||
single insert, match, [1]
|
||||
single insert, non-match, []
|
||||
single insert, in, T
|
||||
single insert, not-in, F
|
||||
multiple inserts, non-match, []
|
||||
multiple inserts, single match, [3]
|
||||
multiple inserts, double match, [1, 3]
|
||||
multiple insert, in, T
|
||||
multiple insert, not-in, F
|
||||
triple match, [1, 3, 4]
|
||||
embedded newline, /s operator, [6]
|
||||
no embedded newline, /s vs. no /s operator, [5, 6, 7]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue