regex

An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs. (by rust-lang)

Regex Alternatives

Similar projects and alternatives to regex

  1. rust

    2,958 regex VS rust

    Empowering everyone to build reliable and efficient software.

  2. SaaSHub

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

    SaaSHub logo
  3. go

    2,418 regex VS go

    The Go programming language

  4. helix

    484 regex VS helix

    A post-modern modal text editor.

  5. ripgrep

    395 regex VS ripgrep

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

  6. zed

    288 regex VS zed

    Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

  7. bat

    227 regex VS bat

    A cat(1) clone with wings.

  8. serde

    207 regex VS serde

    Serialization framework for Rust

  9. fd

    198 regex VS fd

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

  10. coreutils

    153 regex VS coreutils

    Cross-platform Rust rewrite of the GNU coreutils

  11. melody

    55 regex VS melody

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

  12. team

    51 regex VS team

    Rust teams structure (by rust-lang)

  13. sd

    41 regex VS sd

    Intuitive find & replace CLI (sed alternative)

  14. awk

    37 regex VS awk

    One true awk

  15. rust-memchr

    Optimized string search routines for Rust.

  16. pomsky

    19 regex VS pomsky

    A new, portable, regular expression language

  17. pyWhat

    17 regex VS pyWhat

    🐸 Identify anything. pyWhat easily lets you identify emails, IP addresses, and more. Feed it a .pcap file or some text and it'll tell you what it is! šŸ§™ā€ā™€ļø

  18. bfs

    13 regex VS bfs

    A breadth-first version of the UNIX find command

  19. lemmeknow

    12 regex VS lemmeknow

    The fastest way to identify anything!

  20. Fluent

    15 regex VS Fluent

    Rust implementation of Project Fluent

  21. ngrams

    0 regex VS ngrams

    (Read-only) Generate n-grams

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better regex alternative or higher similarity.

regex discussion

Log in or Post with

regex reviews and mentions

Posts with mentions or reviews of regex. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-03-27.
  • Brave Browser unable to block certain ads due to Rust language limitations
    2 projects | news.ycombinator.com | 27 Mar 2026
    The title of this post is currently "Brave Browser unable to block certain ads due to Rust language limitations", which is ludicrous editorialization. Rust doesn't have regex in the language. Rust doesn't even have regex in the stdlib. The most popular crate for regex is https://crates.io/crates/regex , which is an engine whose design deliberately puts a reasonable upper bound on worst-case time complexity by deliberately excluding certain features. Guess what, if you want lookaround, there are regex engines in other crates that offer that: https://crates.io/crates/fancy-regex
  • Farewell Rust
    3 projects | news.ycombinator.com | 19 Feb 2026
  • fd: A simple, fast and user-friendly alternative to 'find'
    23 projects | news.ycombinator.com | 19 Mar 2025
    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

  • Build a Database in Four Months with Rust and 647 Open-Source Dependencies
    4 projects | news.ycombinator.com | 15 Jan 2025
    > but that they rely on third party dependencies for critical components (like regex and async).

    Regex is not a third-party dependency:

    https://github.com/rust-lang/regex

  • Ripgrep Cheatsheet For Neovim Users
    2 projects | dev.to | 10 Aug 2024
    Rust Regex Page: Rust Language - Regex
  • Zed is now open source
    26 projects | news.ycombinator.com | 24 Jan 2024
    The homepage has a benchmark that compares Zed's "insertion latency" to other editors, and this is the description:

    > Open input.rs at the end of line 21 in rust-lang/regex. Type z 10 times, measure how long it takes for each z to display since hitting the z key.

    Could someone clarify what that means? My interpretation of that was to go to https://github.com/rust-lang/regex/blob/master/regex-cli/arg... and start typing 'z' at the end of line 21, but that doesn't seem to make any sense. I guess that repo got refactored and those instructions are out of date?

  • CryptoFlow: Building a secure and scalable system with Axum and SvelteKit - Part 3
    3 projects | dev.to | 8 Jan 2024
    We also used the avenue to sluggify the question title. We used regex to fish out and replace all occurrences of punctuation and symbol characters with an empty string and using the itertools crate, we joined the words back together into a single string, where each word is separated by a hyphen ("-").
  • Command Line Rust is a great book
    4 projects | /r/rust | 8 Dec 2023
    Command-Line Rust taught me how to use crates like clap, assert_cmd, and regex. I felt lost before because I didn't know about Rust's ecosystem--which is arguably as important as the language itself. Also, looking up and comparing libraries is a tiring task! blessed.rs is nice but Command-Line Rust really saved me from analysis paralysis.
  • Common Rust Lifetime Misconceptions
    4 projects | news.ycombinator.com | 4 Dec 2023
    burntsushi actually regrets making regex replace return a Cow: https://github.com/rust-lang/regex/issues/676#issuecomment-6.... I’m glad it does, and wish it took an impl Into> there, for the reasons discussed in the issue, but burntsushi has a lot more experience of the practical outcomes of this. Just something more to think about.
  • Advent of Code 2023 is nigh
    19 projects | news.ycombinator.com | 1 Dec 2023
    I'm not familiar with the AoC problem. You might be able to. But RegexSet doesn't give you match offsets.

    You can drop down to regex-automata, which does let you do multi-regex search and it will tell you which patterns match[1]. The docs have an example of a simple lexer[2]. But... that will only give you non-overlapping matches.

    You can drop down to an even lower level of abstraction and get multi-pattern overlapping matches[3], but it's awkward. The comment there explains that I had initially tried to provide a higher level API for it, but was unsure of what the semantics should be. Getting the starting position in particular is a bit of a wrinkle.

    [1]: https://docs.rs/regex-automata/latest/regex_automata/meta/in...

    [2]: https://docs.rs/regex-automata/latest/regex_automata/meta/st...

    [3]: https://github.com/rust-lang/regex/blob/837fd85e79fac2a4ea64...

  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic regex repo stats
96
3,974
7.8
5 days ago

rust-lang/regex is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of regex is Rust.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

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