Rust Regex

Open-source Rust projects categorized as Regex

Top 23 Rust Regex Projects

  1. ripgrep

    ripgrep recursively searches directories for a regex pattern while respecting your gitignore

    Project mention: Replacing Kubernetes with Systemd | news.ycombinator.com | 2025-05-05

    > 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`.

  2. 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.

    InfluxDB logo
  3. fd

    A simple, fast and user-friendly alternative to 'find'

    Project mention: Digging Through Linux: Must-Know Tools for File and Content Searches | dev.to | 2025-04-30

    fd GitHub

  4. grex

    A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases

  5. sd

    Intuitive find & replace CLI (sed alternative)

    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

  6. melody

    Melody is a language that compiles to regular expressions and aims to be more readable and maintainable

  7. 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-19

    Yes. 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

  8. pomsky

    A new, portable, regular expression language

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. lemmeknow

    The fastest way to identify anything!

  11. DataSurgeon

    Quickly Extracts IP's, Email Addresses, Hashes, Files, Credit Cards, Social Security Numbers and a lot More From Text

  12. srgn

    A grep-like tool which understands source code syntax and allows for manipulation in addition to search

    Project mention: Refactoring Python with Tree-sitter and Jedi | news.ycombinator.com | 2024-09-27

    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

  13. nomino

    Batch rename utility for developers

  14. fancy-regex

    Rust library for regular expressions using "fancy" features like look-around and backreferences

  15. lolcate-rs

    Lolcate -- A comically fast way of indexing and querying your filesystem. Replaces locate / mlocate / updatedb. Written in Rust.

  16. recap

    deserialize typed structures from regex captures (by softprops)

  17. grip-grab

    Hold on tight

    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...

  18. please

    please, a sudo clone (by edneville)

  19. 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
  20. human_regex

    A regex library for humans, written in Rust 🦀

  21. llgtrt

    TensorRT-LLM server with Structured Outputs (JSON) built with Rust

    Project mention: Structured Outputs with Ollama | news.ycombinator.com | 2024-12-06
  22. grepq

    quickly filter fastq files by matching sequences to a set of regex patterns

    Project mention: Grepq: Quickly Filter Fastq Files | news.ycombinator.com | 2025-01-14
  23. regexm

    A Rust macro for writing regex pattern matching.

  24. zeitgrep

    sorted grep

    Project mention: Show HN: Zeitgrep – ripgrep, but sorted by edit stats in Git history | news.ycombinator.com | 2025-05-19
  25. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Regex discussion

Log in or Post with

Rust Regex related posts

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

Sponsored
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.
www.influxdata.com

Did you know that Rust is
the 5th most popular programming language
based on number of references?