hypergrep
repgrep
hypergrep | repgrep | |
---|---|---|
5 | 2 | |
163 | 213 | |
- | - | |
9.3 | 7.0 | |
11 months ago | 19 days ago | |
C++ | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hypergrep
-
Ugrep – a more powerful, ultra fast, user-friendly, compatible grep
Another issue with Hyperscan is that if you enable HS_FLAG_UTF8[1], which hypergrep does[2,3], and then search invalid UTF-8, then the result is UB.
> This flag instructs Hyperscan to treat the pattern as a sequence of UTF-8 characters. The results of scanning invalid UTF-8 sequences with a Hyperscan library that has been compiled with one or more patterns using this flag are undefined.
That's another issue you'll need to grapple with if you use Hyperscan. PCRE2 used to have this issue[4], but they've since defined the semantics of searching invalid UTF-8 with Unicode mode enabled. ripgrep 14 uses that new mode, but I haven't updated that FAQ answer yet.
[1]: https://intel.github.io/hyperscan/dev-reference/api_files.ht...
[2]: https://github.com/p-ranav/hypergrep/blob/ee85b713aa84e0050a...
[3]: https://github.com/p-ranav/hypergrep/blob/ee85b713aa84e0050a...
[4]: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#why...
- Hypergrep: A Fast Recursive Grep
repgrep
What are some alternatives?
linux-regex-module - High-performance regular expression matching library for Linux kernel
igrep - Interactive Grep
moar - Moar is a pager. It's designed to just do the right thing without any configuration.
rebar - A biased barometer for gauging the relative speed of some regex engines on a curated set of tasks.
librapid - A highly optimised C++ library for mathematical applications and neural networks.
grepedit
p4-fusion - A fast Perforce to Git conversion tool written in C++ using Perforce Helix Core C++ API and Libgit2
streampager - A pager for command output or large files
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore