A grep
with custom regex engine written in Zig
zg [flags]... PATTERN FILES...
or instead of FILES
you can redirect zg
's input and it will read from stdin.
For more details see zg --help
- Grouping (
foo(bar)+baz
) - Repetition (
*
and+
) - Optionals (
?
) - Anchors (
^
and$
) - Character groups (
[a-zA-Z_]
,[^0-9a-zA-Z]
)