All tools

🎯Regex TesterReady

Test JavaScript regex patterns in a bounded local worker, inspect captures and offsets, preview replacements, and spot common backtracking risks without mistaking a browser test for production proof.
Category
Processing
In your browser
Account
Not required
Data sent
None
Cost
Free
Private local testing with a responsiveness guard. Your pattern, test text, replacement, and export remain in this browser. Each run uses an isolated worker that is stopped after 400 ms; that protects this tab, but it is not a proof that a pattern is safe for unbounded server-side input.
0 / 2,000 characters
//

Use Ctrl/Cmd + Enter in the pattern or test text to run. JavaScript positions are UTF-16 code-unit offsets; turn on d to see capture offsets.

Examples:
122 / 100,000 characters per run
Capability checkedVerified September 9, 2026
What works
  • Validate ECMAScript flags before compiling the pattern
  • Evaluate a requested match or replacement in a short-lived browser worker rather than the editor's UI thread
  • Stop a worker that exceeds the 400 ms responsiveness budget
Important limits
  • The worker timeout protects this browser tab, not a production service that runs the same pattern against unbounded or hostile input
  • The ReDoS shapes are a deliberately incomplete warning heuristic, not a proof that a pattern is safe or unsafe
Reviewed workflow

Use the Regex Tester with the right expectations

A regex tester should show the runtime it uses and make its boundaries visible. This workbench evaluates only when you request it, in a short-lived browser worker with explicit pattern, sample, match-count, and time limits. It supports current JavaScript flags, zero-length Unicode matching, named captures, d-flag offsets, native replacements, and match-data export that deliberately excludes the full sample.

When it is the right tool

  • Debugging JavaScript flags, global/sticky behavior, and a specific start offset
  • Inspecting numbered and named capture groups with d-flag ranges
  • Testing a replacement without freezing the editor on a pathological sample
  • Exporting pattern settings and match metadata without exporting the complete test text

A deliberate choice

Tooleras keeps this page specific to the job above instead of claiming support for adjacent formats, platforms, or edge cases it cannot verify. Open the capability guide for the exact inputs, outputs, limits, and sources.

Checked examples

Named date fields

(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2}) with dgm

Shows each match plus named year, month, and day captures with their UTF-16 offsets.

A risk signal, not a verdict

(a+)+$ against a near-miss sample

Warns about nested unbounded repetition and stops the isolated worker after the responsiveness budget if evaluation runs too long.

Need a different tool?
Browse the full catalogue — all free, with data handling documented per tool.
Browse all tools