Skip to content

Commit

Permalink
README: document captures
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Jun 23, 2022
1 parent 3b37224 commit c772753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ filtering out lines that match the regex (like `grep -v`).
If provided, the JQ program is run regardless of the outcome of regex filtering, and can still
filter the line out. (It can't add back a filtered line, though.)

Any captures in the regex match become fields in the output (and for JQ to inspect). By default,
they are named `$1`, `$2`, etc. but you can choose your own name with the
`(?P<name>regex goes here)` syntax.

## Highlighting

The built-in jq function `highlight` will caused matched messages to display in inverse-video
Expand Down

0 comments on commit c772753

Please sign in to comment.