{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/10"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"A drop-in replacement for Python's `re` module that uses a linear-time regex engine guaranteed safe from ReDoS attacks, while supporting bounded lookarounds that other linear engines omit.","skillfed_tags":["security-focused","performance-predictable"],"use_cases":["Parsing untrusted user input or hostile regex patterns where ReDoS attacks are a concern","Text extraction and validation in security-sensitive applications where performance must be predictable","Large-scale log parsing or data processing where regex performance matters and backtracking blowup is unacceptable","Building tools that accept user-supplied patterns and need to guarantee they won't hang the system"],"what_it_does":"real-regex is a regex engine that replaces Python's standard `re` module with a linear-time implementation backed by a C++20 Thompson NFA simulator. It guarantees that every accepted pattern runs in linear time with no possibility of catastrophic backtracking (ReDoS), while retaining support for bounded lookarounds\u2014a feature that competing linear engines drop to maintain safety. The API mirrors `re` exactly: `compile`, `search`, `match`, `fullmatch`, `findall`, `finditer`, `sub`, `subn`, `split`, and all standard match object methods work as expected.\n\nThe trade-off is strictness: patterns using backreferences, conditionals, or certain Unicode properties raise an error rather than falling back silently to backtracking. This is intentional\u2014a compiled pattern is a safety guarantee. You can opt into fallback behavior per call or globally if needed, at the cost of losing the linear-time promise for those patterns. The engine ships as a compiled wheel with no runtime dependencies, and the same C++ library is available to C++ code via a header-only interface.","worth_installing":"Yes, if you need ReDoS-safe regex with predictable performance and can accept that the project is very new (first release 2026-06-13). The API is familiar, the license is permissive, and there are no known vulnerabilities. Install friction is medium due to compilation, but wheels cover common platforms. Verify production stability and real-world performance for your specific patterns before relying on it in critical systems."},"id":"real-regex","links":{"html":"https://skillfed.io/packages/real-regex","md":"https://skillfed.io/packages/real-regex.md","pypi":"https://pypi.org/project/real-regex/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-14","license_spdx":"MIT","license_treatment":"permissive","name":"real-regex","python_support":"supports_current","summary":"REAL \u2014 linear-time (ReDoS-safe) regex engine with an re-compatible API"},"popularity":{"monthly_downloads":88057,"position":13751,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2026.8.15"}
