# Drop-in real::regex replaces the regex engine you already use — same API, a **linear-time, ReDoS-safe** engine underneath. **C++ engine replacements** - {doc}`std::regex ` — the `` surface with per-pattern fallback; the {doc}`compatibility reference ` holds the exhaustive contract. - {doc}`RE2 ` — `real::compat::re2`, the RE2-shaped surface on the same linear engine, header-only and zero-dep. **Language bindings** — each a drop-in for its host's regex API: - {doc}`Python re ` — `import real as re`, strict by default. - {doc}`Rust regex crate ` — `use real_regex::Regex`, same surface. - {doc}`Go regexp ` — `real.MustCompile`, v0.1 subset. ```{toctree} :hidden: :maxdepth: 1 std::regex RE2 Python re Rust regex Go regexp ```