Rust Regex

Open-source Rust projects categorized as Regex

Top 19 Rust Regex Projects

  • ripgrep

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

    Project mention: ugrep vs. grep – What are the differences? | reddit.com/r/commandline | 2023-03-08

    It's the first time I hear about the ugrep. Would be nice to compare it with ripgrep, since both provide benchmark tables listing their tool at the top :D. For my everyday use speed doesn't matter much, as well as interactive mode seems useless (YMMV). So I'm staying with ripgrep for now.

  • fd

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

    Project mention: help decompress 1000s of zip file | reddit.com/r/DataHoarder | 2023-03-07

    fd is a tool that can search files by provided patterns and run specific tasks on found files in parallel. Now you only need a command line tool to unpack a file. 7z can do it. 7z e archive.zip -oc:\soft *.cpp -r will extract from the archive all files that end on cpp and put them into a folder C:\soft.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • grex

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

    Project mention: Regex generator | reddit.com/r/learnpython | 2023-02-03

    Sounds like you're looking for something like grex. Mind you, this does not save you from learning about regular expressions. It‘s more of a supporting tool.

  • sd

    Intuitive find & replace CLI (sed alternative)

    Project mention: What modern utilities should be a standard part of a modern unixy distro? | news.ycombinator.com | 2023-02-18

    sd is a more intuitive alternative to sed, focussing on making find and replace easier - which is all I ever used sed for.

    https://github.com/chmln/sd

  • melody

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

    Project mention: Yeah, we all know what you're good for... | reddit.com/r/ProgrammerHumor | 2022-12-09

    just use Melody

  • regex

    An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.

    Project mention: Show HN: Regex Derivatives (Brzozowski Derivatives) | news.ycombinator.com | 2023-03-07

    IIRC, that's what the Rust regex engine[1] currently uses

    [1] https://github.com/rust-lang/regex

  • pomsky

    A new, portable, regular expression language

    Project mention: How to call from Rust into JS, Java, C#, Ruby and Python? | reddit.com/r/rust | 2023-01-10

    I started with JS, and my first step was to write a simple script that checks if a regex is valid. I can call this script from Rust, but there's a problem: Starting a nodejs process takes about 100ms, which is not acceptable, especially for fuzzing.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • lemmeknow

    The fastest way to identify anything!

    Project mention: The most creative, funny, clever, ridiculous, ... library names! | reddit.com/r/rust | 2023-01-20

    lemmeknow - it let's you know what a text is. Basically identifies text / analyze strings in malware using regular expressions.

  • nomino

    Batch rename utility for developers

    Project mention: Need a Rename Utility | reddit.com/r/MacOS | 2022-07-04
  • regex-automata

    A low level regular expression library that uses deterministic finite automata.

    Project mention: Pomsky 0.8 released: A powerful and modern regular expression language | reddit.com/r/rust | 2022-12-22

    My current technique only gets applied to alternations of simple literals. But the idea is generalizeable and I speculate that it is actually impactful to generalize it.

  • fancy-regex

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

    Project mention: lemmeknow v0.7.0 is here with support for identifying bytes with help of regex crate! | reddit.com/r/rust | 2022-10-19

    https://github.com/fancy-regex/fancy-regex/issues/84 it's still open issue

  • DataSurgeon

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

    Project mention: FLiP Stack Weekly for 13 March 2023 | dev.to | 2023-03-13
  • lolcate-rs

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

    Project mention: Right too for the job... | reddit.com/r/commandline | 2022-08-14

    Indexing is the correct answer to this situation. Apparently mlocate is the direct upgrade to locate, but then of course someone made a Rust version, lolcate-rs

  • recap

    deserialize typed structures from regex captures

    Project mention: Show me your most elegant Advent of Code 2022 Day 11 Answer | reddit.com/r/learnrust | 2022-12-11

    👀 that's goddam nice, I was a bit too much obsessed with serde and ended up using recap that can deserialize from regex, I still end up with some FromStr boilerplate that doesn't look as nice

  • please

    please, a sudo clone (by edneville)

  • regexm

    A Rust macro for writing regex pattern matching.

  • human_regex

    A regex library for humans, written in Rust 🦀

    Project mention: Human Regex hits 0.3! | reddit.com/r/rust | 2023-02-12

    You can check out the example usage and features in the repository readme, as well as the cookbook.

  • Python-Regex

    A port of the Rust regex library to python for super speed linear matching.

  • rx

    Standalone version of Emacs' rx macro (by sulami)

    Project mention: A portable, modern regular expression language | news.ycombinator.com | 2022-12-30

    I had a similar kind of idea for a long time, which I put into action a few weeks ago via a standalone transpiler of Emacs' rx macro to common regexp syntaxes.[0] I ended up getting interrupted and didn't completely finish it, but it generally works, though is probably riddled with edge cases.

    The basic idea of rx is to use S-expressions to describe regular expressions, and my elevator pitch would've been to embed rx invocations in shell scripts using $(syntax), the main use case being something like sed invocations.

    I still think it's a neat idea, and complex regular expressions tend to be hard to parse for humans.

    [0]: https://github.com/sulami/rx

  • SaaSHub

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

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). The latest post mention was on 2023-03-13.

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 36,728
2 fd 26,821
3 grex 5,950
4 sd 4,265
5 melody 4,079
6 regex 2,747
7 pomsky 1,151
8 lemmeknow 627
9 nomino 490
10 regex-automata 326
11 fancy-regex 314
12 DataSurgeon 303
13 lolcate-rs 253
14 recap 155
15 please 53
16 regexm 46
17 human_regex 40
18 Python-Regex 15
19 rx 0
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com