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,826 regex VS rust

    Empowering everyone to build reliable and efficient software.

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

    2,261 regex VS go

    The Go programming language

  4. helix

    449 regex VS helix

    A post-modern modal text editor.

  5. ripgrep

    366 regex VS ripgrep

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

  6. bat

    207 regex VS bat

    A cat(1) clone with wings.

  7. serde

    200 regex VS serde

    Serialization framework for Rust

  8. fd

    191 regex VS fd

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

  9. SaaSHub

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

    SaaSHub logo
  10. zed

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

  11. coreutils

    125 regex VS coreutils

    Cross-platform Rust rewrite of the GNU coreutils

  12. melody

    55 regex VS melody

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

  13. team

    51 regex VS team

    Rust teams structure (by rust-lang)

  14. sd

    36 regex VS sd

    Intuitive find & replace CLI (sed alternative)

  15. awk

    36 regex VS awk

    One true awk

  16. rust-memchr

    Optimized string search routines for Rust.

  17. pomsky

    19 regex VS pomsky

    A new, portable, regular expression language

  18. 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! πŸ§™β€β™€οΈ

  19. lemmeknow

    The fastest way to identify anything!

  20. ngrams

    0 regex VS ngrams

    (Read-only) Generate n-grams

  21. bfs

    9 regex VS bfs

    A breadth-first version of the UNIX find command

  22. whatlang-rs

    7 regex VS whatlang-rs

    Natural language detection library for Rust. Try demo online: https://whatlang.org/

  23. SaaSHub

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

    SaaSHub logo
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 2025-03-19.
  • 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...

  • Text Showdown: Gap Buffers vs. Ropes
    3 projects | news.ycombinator.com | 9 Oct 2023
    It’s not quite that simple, but folks are working on it.

    https://github.com/rust-lang/regex/issues/425#issuecomment-1...

    https://github.com/helix-editor/helix/pull/211#issuecomment-...

  • Please ask questions (rust-lang/regex)
    1 project | /r/hypeurls | 30 Aug 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 13 May 2025
    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. Learn more β†’

Stats

Basic regex repo stats
94
3,690
7.9
6 months 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
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?