Skip to content

quangd42/grep-zig

Repository files navigation

progress-banner

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:

  1. Ensure you have zig (0.14) installed locally
  2. Run ./grep.sh instead of grep. For example,
./grep.sh -E "b.+" test/data/fruits.txt test/data/vegetables.txt

./grep.sh -r -E "b.+" test/

About

An implementation of grep in Zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •