- 100% client-side isolated
- 0ms latency
Regular expression tester
Write a pattern, paste your own text, and watch every match light up as you type — with the capture table, the named groups, the positions and the time it took.
- Live highlighting
- Group table with positions
- Errors at the exact character
The pattern, the text, then the answer
The order matches how the problem is actually debugged: change the pattern, watch what it captures, then read the group table when something is subtly off.
Pattern
Every keystroke re-runs the engine against the test string below.
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
- ●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
- —
| # | pos | match | $1 (scheme) | $2 (host) | $3 (port) | $4 (path) |
|---|---|---|---|---|---|---|
| 1 | 0–37 | |||||
| 2 | 45–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
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. 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. 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. 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. 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.
Regex tester FAQ
Zero-width matches, optional groups, the m flag and how the backtracking guard really works.
How do I tell a group that did not participate from one that matched nothing?
The capture table prints a dash when a group did not participate at all, and a pair of empty quotes when it matched zero characters. That distinction is invisible in most tools but matters constantly with optional groups such as `(\d+)?`.
Why is there a caret drawn in my text with no highlight?
That is a zero-width match. A pattern like `\b` or `a*` can match the empty string at a position; there is no text to highlight, so the tester draws a caret instead. Hiding those matches would misreport how many the engine found.
What does the m flag change?
It makes ^ and $ match at the start and end of every line rather than of the whole input. Without it only the first and last line can satisfy them, which is the most common reason a log-scanning pattern finds one match instead of hundreds.
Why is my match count capped?
The loop stops at 2000 matches or 250 ms, whichever comes first, so a pattern that matches at every position in a large document cannot lock up the tab. When that happens the tester says so explicitly rather than showing a silently partial list.
Is the execution time the same as in production?
It is the real time this tab spent matching, measured with the browser's high-resolution timer, so it is meaningful for comparing two patterns against the same text. It is not a benchmark: it excludes parsing your source file and everything the surrounding program does.
More free tools in the hub
Code Generator
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 toolCheat Sheet
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 toolExplainer
SoonAn 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