Skip to content
RegexCraft
  • 100% client-side isolated
  • 0ms latency
  • 3 tools, no signup

Debug a regular expression without leaving your browser

Test a regex against your own text with live highlighting, generate matching code for seven languages, and copy from a library of verified patterns.

  • Live match highlighting
  • Code for 7 languages
  • 28 tested patterns
No upload and no account — verify it in DevTools.Focus the pattern with CtrlK or re-run into the text with CtrlEnter.VS Code-style highlighting for every target.

Free tools

The whole regex loop, served locally

One hub, no accounts and no upload: patterns are compiled by your own browser, matches are drawn on this device and snippets are generated as you type.

  • Regex Tester

    Live

    Paste a pattern and your own text: every match is highlighted as you type, with the capture table, named groups, positions and execution time. Syntax errors are reported at the exact character, and dangerous backtracking is flagged before you run it.

    Open tool
  • Code Generator

    Live

    Turn a pattern into production code for JavaScript, TypeScript, Python, PHP, Java, Go and C#. Choose match, replace or extract-all, and see the flags, the string quoting and the replacement syntax translated per language.

    Open tool
  • Cheat Sheet

    Live

    A searchable library of real patterns — email, URLs, IPv4 and IPv6, phone numbers, hex colours, credit card formats, slugs and password policies — each with the examples it must match and must reject, plus a full syntax reference.

    Open tool
  • Explainer

    Soon

    An animated walk through the engine: each alternation branch, quantifier expansion and backtracking step drawn as a tree, so a pattern that behaves unexpectedly can be read rather than guessed at. In development on the same client-side engine.

    In development

Start with a pattern you already have

The tester below is the full tool: paste a pattern, watch every match light up as you type, and read the capture table when a group behaves unexpectedly.

Pattern

Every keystroke re-runs the engine against the test string below.

Ctrl+Kfocus
^(?<scheme>https?):\/\/(?<host>[^\/\s:]+)(?::(?<port>\d+))?(?<path>\/[^\s?#]*)?
Examples:
  • Nested quantifier at column 60

    (?<path>\/[^\s?#]*)?

    A quantified group ends in another quantifier. When the match fails, the engine retries that group with every possible split of the same characters, which is exponential on a long input. Rewrite it as one quantifier, or narrow the inner part so only one split is possible.

Test string

97 characters

Ctrl+Enterfocus
https://api.example.com:8443/v1/users?page=2 http://localhost/health ftp://files.example.com/dump
  • ●Literal
  • ●Class / dot
  • ●Escape
  • ●Quantifier
  • ●Group
  • ●Anchor
  • ●Alternation
  • ●Backreference

Results

Match count, capture groups and execution time.

Matches
2
Groups
4
Named groups
4
Duration
—
Every match with its capture groups
#posmatch$1 (scheme)$2 (host)$3 (port)$4 (path)
10–37
245–68

Click any cell to highlight that match or group in the test string above. A dash means the group did not participate at all; "" means it matched zero characters.

  • 100% client-side isolated
  • executed in this tab
  • 6 flags

Need the flag reference and the engine notes? Open the full tester

How it works

Regex tooling that runs in your tab

No proxy, no sign-up and nothing to wait for: patterns are compiled by your browser, matches are drawn inside this page and snippets are generated while you type.

  1. 1. Write the pattern, watch the matches

    The studio re-runs your browser's engine on every keystroke: matches highlight in place, the capture table fills in, and a syntax error points at the exact line and character.

  2. 2. Read the capture table

    Groups, positions and names are listed per match, and a group that did not participate is drawn differently from one that matched zero characters — the detail behind most "why did this match" questions.

  3. 3. Take the code with you

    One pattern becomes runnable JavaScript, TypeScript, Python, PHP, Java, Go or C#. Flags, string quoting and replacement syntax are translated per language, and anything a target cannot express is listed rather than dropped.

  4. 4. Start from a pattern that is already tested

    Every entry in the library carries the examples it must match and the examples it must reject. The same cases run against the real engine, so "tested" is a claim the build enforces.

Privacy by architecture

Nothing is uploaded — and you can verify it

Privacy claims are cheap, so this one is falsifiable: there is no server-side code path here that could receive your data even if it wanted to.

  • No server, so nothing to log

    RegexCraft ships no backend route that accepts a pattern, a test string or a replacement. Open DevTools, watch the Network tab and use any tool: the only requests are the page assets.

  • Your pattern stays in the tab

    Patterns, test strings and matches live in React state inside this tab. They are never written to localStorage. The only thing that travels between pages is the optional hash of a "load into tester" link, and a hash is never sent in a request.

  • Deterministic verdicts

    The same pattern, flags and test string always produce the same matches, groups and positions. Only the duration varies with your machine, which is why it is labelled as a relative measure rather than a benchmark.

Free forever, no account required — the tools are static pages that run entirely on the client.

RegexCraft FAQ

CORS, privacy, tokens, reproducibility and what each generator actually reads.

Is anything I type sent to your servers?

No. RegexCraft is a set of static pages with no backend of its own: there is no endpoint that accepts a pattern, a test string or a replacement. Open DevTools, watch the Network tab and use any tool — the only requests are the page assets themselves.

Which regex engine runs here?

The one built into your browser, which is JavaScript's. That gives you the exact semantics you get at runtime in a browser or in Node, including named groups, lookbehind and the u, s and y flags. Flavours that differ — PCRE, RE2, .NET — are described in the code generator's notes rather than simulated.

Why does my pattern work here but not in Go or Python?

Because the flavours genuinely differ. Go uses RE2, which has no backreferences and no lookaround. Python's re has no sticky flag. The generator lists every flag or construct a target cannot express instead of quietly dropping it, so the gap is visible before you paste the code in.

Can a pattern freeze the tab?

In principle yes, because JavaScript cannot interrupt a single regex call once it has started. Two things make that unlikely: a static analysis names the constructs that cause catastrophic backtracking before you run them, and the match loop stops after 250 ms or 2000 matches and says that it stopped early. Neither is a sandbox, and the copy says so.

Are the patterns in the library actually correct?

Each one ships with examples it must match and examples it must reject, and the build runs every case through the real engine. If a pattern stops behaving as documented the test suite fails, so 'tested' is a verified claim rather than a label.