Regex tester with plain-English explanations
Point at any part to see what it matched and what it means. Runs in your browser; nothing is uploaded.
Loading the matching engine…
Reading the pattern…
Ready-made patterns
Each one opens in the tester with sample text, or read its page for what it matches, what it deliberately doesn’t, and code in four languages.
- Email addressOpen in tester: Email address
(\w[\w.+-]*)@(\w[\w-]*(?:\.\w[\w-]*)*\.[A-Za-z]{2,})Find addresses in prose, headers or form input, with the name and domain captured.
- URLOpen in tester: URL
(https?)://([\w-]+(?:\.[\w-]+)+)(?::(\d+))?(/[^\s]*[^\s.,;:!?)\]])?Pull http and https links out of text without the trailing punctuation.
- UUIDOpen in tester: UUID
\b[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\bMatch RFC 9562 UUIDs (versions 1 to 8) and reject the wrong variant.
- IPv4 addressOpen in tester: IPv4 address
\b(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\bFind dotted-quad addresses and reject octets above 255.
- ISO 8601 dateOpen in tester: ISO 8601 date
(?<year>\d{4})-(?<month>0[1-9]|1[0-2])-(?<day>0[1-9]|[12]\d|3[01])Capture YYYY-MM-DD dates as named year, month and day groups.
- 24-hour timeOpen in tester: 24-hour time
\b([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d))?\bMatch HH:MM and HH:MM:SS from 00:00 to 23:59:59.
- Hex colourOpen in tester: Hex colour
#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})\bSpot 3- or 6-digit hex colours in stylesheets and themes.
- Semantic versionOpen in tester: Semantic version
\bv?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([\w.-]+))?(?:\+([\w.-]+))?\bMatch versions like 1.4.2, 2.0.0-rc.1 and 3.0.0+build.7.
- US phone numberOpen in tester: US phone number
\(?\b\d{3}\)?[-. ]?\d{3}[-. ]?\d{4}\bMatch 10-digit US numbers with brackets, dots, dashes or spaces.
- URL slugOpen in tester: URL slug
^[a-z0-9]+(?:-[a-z0-9]+)*$Validate lowercase, hyphen-separated slugs, one per line.
- Password rulesOpen in tester: Password rules
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^\w\s]).{12,}$Require 12+ characters with lower, upper, digit and symbol (lookaheads).
What runs where
The tester runs JavaScript regex. Python, Go and Rust code is a translation: open the table before you paste into Go or Rust.
| Feature | JavaScript | Python re | Go regexp | Rust regex |
|---|---|---|---|---|
| Tested on this page | Yes, your browser runs it | No, translated | No, translated | No, translated |
| Named groups | (?<name>…) | (?P<name>…), rewritten for you | (?P<name>…) or (?<name>…) | (?P<name>…) or (?<name>…) |
| Lookahead, lookbehind | Yes | Yes (lookbehind fixed width) | No | No |
| Backreferences | Yes | Yes | No | No |
| Atomic groups, possessive | No | Yes, 3.11+ | No | No |
| Linear-time guarantee | No | No | Yes | Yes |
| Flags | g i m s u y | re.I re.M re.S | inline (?i)(?m)(?s) | inline or RegexBuilder |
Where RegexCraft fits, and where it doesn’t
Compared by kind of tool, not by brand. If you need to run PCRE or .NET exactly, a multi-flavour tester is the better pick; RegexCraft is for understanding a JavaScript pattern quickly.
| What you need | RegexCraft | Multi-flavour online testers | Diagram-only visualisers | Asking a chat assistant |
|---|---|---|---|---|
| Point at a group: its characters, captures and explanation light together | YesIn the pattern, text, table and explanation | Some link the explanation to the pattern; matches sit in another panel | NoNo test text | NoProse answer |
| Same explanation every time | YesDeterministic parser | YesDeterministic | Diagram only | NoAnswers vary; check them |
| Run the engine you deploy (PCRE, Python, .NET, Java) | NoJavaScript only; others translated with warnings | YesMany flavours | NoNo matching | NoIt predicts, it doesn't run |
| Step-through debugger | NoNot offered | Some have one | No— | No— |
| Railroad diagram | YesBuilt in | Some | YesThat's the job | No— |
| Text stays on your device | YesWeb Worker, no requests | Most match in the browser | YesUsually | NoSent to the model provider |
| No account, no ads | YesAccount only for the 4-language download | Varies | YesUsually | Account usually needed |
Questions
Is my pattern or text sent anywhere?
No. Matching, the explanation, the diagram and the code are all computed in a Web Worker inside your browser tab. The page makes no network request with what you type. Your last pattern, text, flags and language are kept in this browser's local storage so they are there when you come back; clearing site data removes them.
Which regex flavour does RegexCraft run?
JavaScript (ECMAScript), using your browser's own RegExp engine, so results match what Node.js and browsers do. The Python, Go and Rust code is a translation: RegexCraft rewrites named groups for Python and warns about lookarounds and backreferences for Go and Rust, but it does not execute those engines. If you need PCRE, .NET or Java semantics, test in a tool that runs them.
How is the plain-English explanation made?
A hand-written parser reads the pattern into a syntax tree and describes each node: groups, character classes, quantifiers, anchors, lookarounds and backreferences. There is no language model involved, so the same pattern always gets the same explanation, and every line points back at the exact characters it describes.
What does pointing at a part of the pattern do?
Hover or put the caret on any part of the pattern, any highlighted text, any explanation line or any table cell. The same thing lights everywhere: the characters in the pattern, what that group captured in every match, and the line that explains it. Clicking a match in the table scrolls the text to it.
What happens with catastrophic backtracking?
Matching runs in a Web Worker, so a runaway pattern cannot freeze the page. Once the engine has started a match, it gets 1.5 seconds; if it is still running, the worker is stopped, replaced, and you are told the pattern kept backtracking. The timer starts only when the engine has actually begun, so a slow device loading the page never triggers a false warning.
Is there a limit on text size?
The tester reads the first 100,000 characters and lists up to 1,000 matches. When it stops at the match limit it says so, rather than showing a partial count as if it were complete.
Do I need an account?
No. Testing, the explanation, the diagram and copying code in any of the four languages are free with no sign-in. A free Nor AI account is only asked for when you download all four languages as one Markdown file.
Built by Nor AI
RegexCraft is a free tool from Nor AI Technologies, an engineering studio in Ghazipur, Uttar Pradesh. We build custom AI, web and 3D software that runs in your own infrastructure, and you keep the code.
Need pattern validation or extraction built into your own pipeline? You talk to the engineers who write the code.