Tools ยท Developer Tools

Regex Safety & Performance Inspector

Flag common backtracking traps, then test a sample in a worker that is killed if it runs too long.

Allowed flags: g i m s u y. Dangerous tests run in a worker.

Heuristic review

Matches

The worker is terminated if matching exceeds 800 ms. This does not prove a pattern is safe in every engine.

How it works

  1. Enter a pattern. Inspect for nested quantifiers and unbounded wildcards.
  2. Paste a sample and test. Matching runs off the UI thread.
  3. Cancel if you need to stop. The worker is terminated.

FAQ

Can this freeze my browser?

The test is designed not to. The worker is killed after a short timeout. Inspect-only does not execute the pattern against a large sample.

Is my sample uploaded?

No. Pattern and sample stay in this browser.

Read the original guide: Test a regex without freezing the tab.

An unhandled error has occurred. Reload Dismiss

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.