SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Rust Regex Projects
-
ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
> The maintainer also has been pretty rude to me about this on HN.
This is AFAIK the only other interaction we've had: https://news.ycombinator.com/item?id=41051587
> but it's still crazy to think people won't be caught off guard by this behavior
Straw-manning is also crazy. :-) People have and will absolutely be caught off guard by the behavior. On the flip side, as I said 9 months ago, ripgrep's default behavior is easily one of the most cited positive features of ripgrep aside from its performance.
The other crazy thing here is... you don't have to use ripgrep! It is very specifically intended as a departure from traditional grep behavior. Because if you want traditional grep behavior, then you can just use grep. Hence why ripgrep's binary name is not `grep`, unlike many other implementations of POSIX grep.
> Its name is literally indicating it's a grep replacement.
I also tried to correct this 9 months ago too. See also: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos...
For anyone else following along at home, if you want ripgrep to search the same files that GNU grep searches, then do `rg -uuu`. Or, if you don't want ripgrep to respect your gitignores but ignore hidden and binary files, then do `rg -u`.
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
Project mention: Digging Through Linux: Must-Know Tools for File and Content Searches | dev.to | 2025-04-30
fd GitHub
-
grex
A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases
-
Project mention: fd: A simple, fast and user-friendly alternative to 'find' | news.ycombinator.com | 2025-03-19
sed has to be one of the worst POSIX tools. It sounds simple enough, but everytime I reach for sed it doesn't do what I want, either because it doesn't align with how I do things, or because it just doesn't support doing what I want.
I've switched to sd[1] because it basically just works as I expect every time.
[1]: https://github.com/chmln/sd
-
melody
Melody is a language that compiles to regular expressions and aims to be more readable and maintainable
-
regex
An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
Project mention: fd: A simple, fast and user-friendly alternative to 'find' | news.ycombinator.com | 2025-03-19Yes. I'm the one who implemented the case folding the `fd` uses (via its regex engine).
See: https://github.com/rust-lang/regex/blob/master/UNICODE.md#rl...
And then Unicode itself for more discussion on the topic: https://unicode.org/reports/tr18/#Simple_Loose_Matches
TR18 used to have a Level 3[1] with the kind of locale-specific custom tailoring support found in GNU's implementation of POSIX locales, but it was so fraught that it was retracted completely some years ago.
[1]: https://unicode.org/reports/tr18/#Tailored_Support
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
DataSurgeon
Quickly Extracts IP's, Email Addresses, Hashes, Files, Credit Cards, Social Security Numbers and a lot More From Text
-
srgn
A grep-like tool which understands source code syntax and allows for manipulation in addition to search
which seems roughly like what the author is after. Mentions of "database" _outside_ function definitions are not modified. That sort of logic I always found hard to replicate in basic GNU-like tools.
Note: I just wrote this, and version 13.2 is required for the above to work.
[0]: https://github.com/alexpovel/srgn
-
-
No, I'm happy with vim -- or more precisely, Macvim. I'm somewhat tempted to make the jump to ad, if anything, but I'm afraid the learning curve would be pretty steep for this old dog. It's also in its very early development. But I love what he's trying to do.
https://github.com/sminez/ad
-
fancy-regex
Rust library for regular expressions using "fancy" features like look-around and backreferences
-
lolcate-rs
Lolcate -- A comically fast way of indexing and querying your filesystem. Replaces locate / mlocate / updatedb. Written in Rust.
-
-
Project mention: A somewhat faster, more lightweight, ripgrep-inspired alternative | news.ycombinator.com | 2024-08-28
I tried finding other cases where `gg` is meaningfully faster, but I didn't turn anything up.
Now, grip-grab is using the same libraries as ripgrep. So why doesn't it have the same performance profile as ripgrep? That is harder to answer, but it's likely not using the libraries in the best way possible. That's largely my failing, since the libraries are poorly documented, complex and sprawling.
[1]: https://github.com/alexpasmantier/grip-grab/blob/92cc5f6dc2f...
-
-
grits
A simple line-text formatter that makes it simple to parse, filter, and format live logs turning noise into meaningful insights. (by solidiquis)
Project mention: Grits: Easily parse, filter, and format live logs turning noise into insights | news.ycombinator.com | 2025-01-20 -
-
-
-
-
Project mention: Show HN: Zeitgrep – ripgrep, but sorted by edit stats in Git history | news.ycombinator.com | 2025-05-19
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Rust Regex discussion
Rust Regex related posts
-
Vim, the After Life
-
One-Liner for Finding Typos
-
SD: Intuitive find and replace CLI (sed alternative)
-
A somewhat faster, more lightweight, ripgrep-inspired alternative
-
A somewhat faster, more lightweight, ripgrep-inspired alternative
-
Ripgrep Cheatsheet For Neovim Users
-
amber, a code search & replace tool
-
A note from our sponsor - SaaSHub
www.saashub.com | 23 May 2025
Index
What are some of the best open-source Regex projects in Rust? This list will help you:
# | Project | Stars |
---|---|---|
1 | ripgrep | 52,481 |
2 | fd | 38,001 |
3 | grex | 7,479 |
4 | sd | 6,277 |
5 | melody | 4,673 |
6 | regex | 3,696 |
7 | pomsky | 1,305 |
8 | lemmeknow | 997 |
9 | DataSurgeon | 833 |
10 | srgn | 758 |
11 | nomino | 670 |
12 | ad | 548 |
13 | fancy-regex | 483 |
14 | lolcate-rs | 299 |
15 | recap | 170 |
16 | grip-grab | 121 |
17 | please | 71 |
18 | grits | 58 |
19 | human_regex | 54 |
20 | llgtrt | 53 |
21 | grepq | 52 |
22 | regexm | 49 |
23 | zeitgrep | 31 |