Rust crate alternatives · data Oct 24, 2026
Alternatives to regex
Short answerThe closest alternatives to regex on crates.io data are strsim (3M real downloads a day), unicode-width (2.2M real downloads a day), utf8_iter (2.1M real downloads a day). Of the 8 we list, the most used is strsim, and 4 shipped a release in the last year. regex itself gets 3,355,026 a day with 24,288 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs regex | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| strsim Established | 2,956,166 | 0.88x | 733 | 2.6y | category Text processing | side by side |
| unicode-width Widely used | 2,194,046 | 0.65x | 3,230 | 13mo | category Text processing | compare |
| utf8_iter Pulled in | 2,136,300 | 0.64x | 12 | 2.9y | category Text processing | compare |
| convert_case Widely used | 1,687,092 | 0.50x | 1,213 | 58d | category Text processing | compare |
| matchers Pulled in | 1,581,741 | 0.47x | 3 | 2.3y | category Text processing | compare |
| encoding_rs Widely used | 1,414,714 | 0.42x | 1,424 | 30d | category Text processing | compare |
| bstr Established | 1,252,630 | 0.37x | 676 | 2mo | category Text processing | compare |
| unicase Established | 1,204,062 | 0.36x | 292 | 19d | category Text processing | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with regex; read its description before you swap.
- More dependents means more answered questions and a smaller chance it disappears.
- Check the last release against how fast you need fixes. For regex: is it still maintained?
Rules
Alternatives = tracked crates (top 1000 by downloads) that share a specific crates.io category (2 points each) or keyword (3 points each) with regex, most similar first; its own parts (same name prefix) and crates it depends on or that depend on it are left out, because those are companions, not substitutes. Real downloads = quiet-day median, crates.io data Oct 24, 2026. Built when we find 3 or more.
Up next
The closest alternative: Established and quiet for years. 2,956,166 real downloads a day.strsimRust crate. Implementations of string similarity metrics. Includes Hamming, Levenshtein, OSA, Damerau-Levenshtein, Jaro, Jaro-Winkler, and Sørensen-Dice. Real use: 3M...Read it next →Also worth your time