International Phone (E.164) Regex
Strict ITU-T E.164 international phone number validation (7 to 15 digits with leading +).
Visual Railroad Diagram (AST-Compiled SVG)
zero external libsTest Input & Live Match Inspector
AI-Regex ReDoS Security Audit
SAFE / LINEARAutomatic adversarial inputs generated locally to catch silent AI-regex edge cases.
Quick Answers
Why audit AI-generated regular expressions for ReDoS?
LLMs frequently emit nested quantifiers like (a+)+ or overlapping alternations that pass small tests but freeze Node.js, Python, or Java servers at 100% CPU on malformed user input. McRegex parses your pattern into an AST and catches these statically in 0 ms.
Does McRegex send my regex or test strings to a server?
Never. The AST parser, ReDoS auditor, SVG railroad compiler, adversarial fuzzer, and code exporter run 100% locally in your browser with strict CSP (connect-src 'self') and offline PWA support.
Why does Go (RE2) or Rust warn about lookarounds?
Go's regexp package and Rust's regex crate guarantee O(n) linear-time execution by intentionally disallowing lookahead, lookbehind, and backreferences. McRegex flags these automatically when exporting code.