This is my Zig solutions to the "Build Your Own grep" Challenge.
Regular expressions
(Regexes, for short) are patterns used to match character combinations in
strings. grep
is a CLI tool for
searching using Regexes.
In this challenge I built your own implementation of grep
. I learned more about Regex syntax,
and how regular expressions are evaluated.
To try it out:
- Ensure you have
zig (0.14)
installed locally - Run
./grep.sh
instead ofgrep
. For example,
./grep.sh -E "b.+" test/data/fruits.txt test/data/vegetables.txt
./grep.sh -r -E "b.+" test/