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. Learn more →
Top 19 Rust Regex Projects
-
ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
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 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
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.
-
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.
-
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-09just 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-07IIRC, that's what the Rust regex engine[1] currently uses
-
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.
-
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.
-
-
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-19https://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
-
lolcate-rs
Lolcate -- A comically fast way of indexing and querying your filesystem. Replaces locate / mlocate / updatedb. Written in Rust.
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
-
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
-
-
-
You can check out the example usage and features in the repository readme, as well as the cookbook.
-
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Rust Regex related posts
- ugrep vs. grep – What are the differences?
- Is the Rust regex crate a bottleneck in your program? Can you share the details?
- Is the regex crate a bottleneck in your program? If so, can you share the details?
- why GNU grep is fast
- Regex generator
- How to call from Rust into JS, Java, C#, Ruby and Python?
- Neovim locks up on big files while doing a replacement
-
A note from our sponsor - SonarLint
www.sonarlint.org | 23 Mar 2023
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 |