opyeb/RegexAudit
ToolGuideFAQ

RegexAudit · About

About RegexAudit

A single-purpose tool for the step between a regex that works and a regex that survives.

RegexAudit is a static page. There is no backend, no database and no build step at request time. The browser downloads one HTML document, one stylesheet, two scripts and a few icons. The matcher is the engine the browser already has; the audit, the explainer and the exporters are ordinary JavaScript functions. That is why the page keeps working after the first load and why nothing typed into it can leave it.

It exists because of a specific moment: a pattern is written, it passes the tests, it ships, and six months later a single request with a long line of text takes a worker down. The pattern was never wrong in the sense the tests could see. It had a shape the tests could not see. RegexAudit makes that shape visible on the screen where the pattern is written, and puts the engine's real behaviour next to it so the two views can be compared.

What it refuses to claim

It does not know your data, so it does not score your risk. It does not know whether a pattern is correct, only whether it is shaped dangerously. It does not run your pattern on a server, so it cannot tell you how it behaves under load. And it does not replace a timeout: a pattern graded A+ still deserves a limit on the length of the input it is given and a bound on the time it may take.

How the output is checked twice

Every release is built from a source tree that contains two implementations of the same functions: the JavaScript the site ships and an independent Python reference. A build script runs more than forty scenarios (matching, capture indices, replace, split, extract and audit verdicts) through both and compares the results field by field. The same build loads all twenty pages at three viewport widths in a headless browser and checks console errors, horizontal overflow, storage writes and outside requests, then packages a zip and repeats the check from the zip alone. Numbers that disagree stop the release; they are not written down as "close enough".

One line of privacy

Your pattern and your text do not leave the tab. The details, including the one ad script the page loads, are on the privacy page.