ieviev

ieviev / resharp

Public

RE# - A high-performance, automata based regex engine with first-class support for intersection and complement operations.

44
1
100% credibility
Found Mar 13, 2026 at 44 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

RE# provides a speedy text pattern matching library for Rust programs, excelling at complex combinations like intersections, complements, and lookarounds that stump regular tools.

How It Works

1
🔍 Discover a smarter way to find text

You hear about RE# while searching for a tool that handles really tough text patterns quickly, like finding strings that match multiple rules at once.

2
📥 Bring it into your project

With one easy addition, you include RE# in your work, ready to supercharge your text searches.

3
✨ Craft powerful search patterns

You write clever patterns that combine matches (with &), exclude unwanted ones (~), or peek ahead/behind, feeling like a text wizard as complex searches become simple.

4
đź§Ş Test on your data

Run your patterns on real text files or streams, watching it zip through huge amounts without slowing down.

5
⚡ See the speed boost

Your searches fly through tough jobs that used to crawl, handling lists of options or tricky conditions effortlessly.

🎉 Unlock blazing-fast text magic

Now your app or tool masters any text challenge with top speed and reliability, making you smile at how smooth everything runs.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 44 to 44 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is resharp?

Resharp is a Rust regex engine that compiles patterns into deterministic automata for guaranteed linear-time matching on byte slices. It solves the problem of standard engines degrading on complex patterns like large alternations, lookarounds, or boolean combos by adding first-class intersection (`&`), complement (`~`), and universal wildcard (`_`). Drop it in with `cargo add resharp` for `find_all` and `is_match` on `&[u8]`, returning leftmost-longest matches without backtracking.

Why is it gaining traction?

It crushes the `regex` crate on benchmarks for dense matches, case-insensitive searches, and lookarounds—449 MiB/s vs 58 MiB/s on 2600-word dictionaries, even on low-power ARM. Devs grab it as a github re engine alternative when `regex` hits NFA fallback or `fancy-regex` backtracks slowly, plus syntax extensions enable patterns impossible elsewhere, like "contains 'a' but not 'b'". Not a ReSharper JetBrains fork or C++ tool—this is pure Rust re framework for high-perf text processing.

Who should use this?

Rust backend devs parsing logs with lookarounds or validating inputs via intersections, like security scanners checking multiple conditions without slow hacks. Data engineers matching huge alt lists in pipelines, or game devs (re ue4ss style) needing fast anchored finds on game logs. Skip if you need captures or lazy quantifiers—stick to `regex` for basics.

Verdict

Grab it for complex patterns where std regex chokes; benchmarks and syntax docs make it easy to test via github re open pull request or re run ci. At 44 stars and 1.0% credibility, it's early-stage but mature enough for prod trials—excellent paper/blog backing, just watch capacity limits on massive DFAs.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.