Crate

regex

Regular expressions for Rust — fast, safe, linear-time matching.

What it is

regex is the standard regular expression engine for Rust. It guarantees linear-time matching with no backtracking by using finite automata, making it safe against ReDoS attacks on untrusted input. The API supports search, capture groups, replace, and splitting.

Why it is commonly used

Used for text parsing, log analysis, data extraction, input validation, and pattern matching. The linear-time guarantee makes it appropriate for server-side code where input comes from untrusted sources.

2.0k
Repositories
89%
Actively maintained
1.8k
Updated ≤ 30 days
6.3M
Total stars
1.7k
Owners

Counted from the Cargo.toml manifests of the 2.0k indexed repositories that declare regex as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 2040 repositories using regex in Repos →
Often used with

Crates that show up unusually often in regex projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of regex projects that also use it.

Used by these organizations
50 of 2.0k repositories · ranked by stars · 1.8k pushed in the last 30 days
claw-code195kactive

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

RuView90kactive

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

rtk76kactive

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

⑂ 4.8k2.0k
hyperswitch43kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

servo38kactive

Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.

⑂ 3.7k3.1k
delta32kactive

A syntax-highlighting pager for git, diff, grep, rg --json, and blame output

⑂ 555420
rustfs31kactive

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

← Browse all repos