Install
regex
An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
1.13.2Latest, 18 Nov 2026
369MDownloads, last 90 days
0Advisories on the latest
2Advisories, all versions
MIT OR Apache-2.0Licence
4.1KStars
6.3/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | Rust's regex crate vulnerable to regular expression denial of service CVE-2022-24713 | Fixed in 1.5.5 | 8 Mar 2022 |
| Regexes with large repetitions on empty sub-expressions take a very long time to parse CVE-2022-24713 | Fixed in 1.5.5 | 8 Mar 2022 |
In the news
- Why Git Pre-Commit Regex Fails: Detecting High-Entropy Secrets with Abstract Syntax Tree (AST) Parsing dev.to, 2 Dec 2026
- RE2 vs PCRE: Every Regex Construct That Silently Breaks in GA4 (and the Fix) dev.to, 24 Nov 2026
- Build a regex engine from scratch in about 130 lines of Python dev.to, 20 Nov 2026
- Stop regex-ing the LLM's prose phpboyscout.uk, 19 Nov 2026
- regex-engine: محرّك regex من الصفر بلغة Rust، بلا backtracking dev.to, 18 Nov 2026
On Hacker News
- The Greatest Regex Trick Ever (2014) 582 points, 191 comments, 8 Jul 2021
- Regex for Noobs – An Illustrated Guide 541 points, 105 comments, 4 Aug 2019
- Show HN: RegEx for Regular Folk – A visual, example-based introduction 502 points, 108 comments, 1 May 2020
- Show HN: Regex Cheatsheet 499 points, 129 comments, 31 Jan 2020
Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.