正規表現テスター

リアルタイムで正規表現を検証し、マッチ箇所のハイライト表示、フラグ切り替え、名前付きグループ、置換出力を確認。

/ /
01 / SECURITY

Catastrophic Backtracking (ReDoS)

Nested quantifiers like (a+)+$ cause exponential \(O(2^n)\) runtime complexity on non-matching inputs. In high-throughput Node.js microservices or API gateways, unvetted regexes freeze the single-threaded event loop. Always benchmark and bound untrusted regex evaluations.

02 / MODERN ES2018+

Named Capture Groups

Replace fragile positional indices ($1, $2) with named capture groups: (?<id>\d+). In code and substitutions, reference them by name (match.groups.id, $<id>) to prevent breaking parser regressions when pattern structure evolves.

03 / IN-BROWSER PRIVACY

Client-Side Execution

All regex compilation and evaluations run in your local browser JavaScript engine (V8 / JavaScriptCore). Sensitive API tokens, logs, and configuration files are never dispatched across the network.