-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement pattern count, pattern length and pattern offset expr…
…essions
- Loading branch information
Showing
7 changed files
with
453 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
rule test_1 { | ||
strings: | ||
$a = "foo" | ||
condition: | ||
$a | ||
} | ||
|
||
rule test_2 { | ||
strings: | ||
$a = "foo" | ||
condition: | ||
$a in (0..10) | ||
} | ||
|
||
|
||
rule test_3 { | ||
strings: | ||
$a = "foo" | ||
condition: | ||
$a at filesize | ||
} | ||
|
||
rule test_4 { | ||
strings: | ||
$a = "foo" | ||
condition: | ||
#a in (0..10) | ||
} | ||
|
||
rule test_5 { | ||
strings: | ||
$a = "foo" | ||
condition: | ||
@a == 10 and @a[0] == 10 | ||
} | ||
|
||
rule test_6 { | ||
strings: | ||
$a = "foo" | ||
condition: | ||
!a == 10 and !a[1+1] == 10 | ||
} |
Oops, something went wrong.