Skip to content

Commit

Permalink
doc: improve filter description
Browse files Browse the repository at this point in the history
  • Loading branch information
hillu committed Aug 22, 2023
1 parent f265b96 commit aed26d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/references/vql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,14 @@
category: plugin
- name: filter
description: |
Filters a strings array by regex.
Filters an array by regex or condition.
### Examples
```vql
filter(list=["AA", "AB", "BA", "BB"], regex="^A") -> ["AA", "AB"]
filter(list=[1, 2, 3, 4, 5, 6], condition="x=>x > 3") -> [4, 5, 6]
```
type: Function
args:
- name: list
Expand Down

0 comments on commit aed26d8

Please sign in to comment.