mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
18 lines
289 B
Text
18 lines
289 B
Text
#
|
|
# @TEST-EXEC: bro %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event bro_init()
|
|
{
|
|
local a = "this is a test";
|
|
local pat = /hi|es/;
|
|
local pat2 = /aa|bb/;
|
|
|
|
local b = find_all(a, pat);
|
|
local b2 = find_all(a, pat2);
|
|
|
|
for (i in b)
|
|
print i;
|
|
print "-------------------";
|
|
print |b2|;
|
|
}
|