Regex Tester
Test JavaScript regular expressions live — see matches, groups and errors as you type.
- Match 1
- hello@dnsblade.com
- Index
- 14
- Group 1
- hello
- Group 2
- dnsblade.com
- Match 2
- sales@example.com
- Index
- 36
- Group 1
- sales
- Group 2
- example.com
About the Regex Tester
The Regex Tester lets you build, test and debug JavaScript regular expressions against sample input in real time. Highlights every match, shows capture groups, supports all standard flags (g, i, m, s, u, y), and explains what your pattern matches step by step. Ideal for quick pattern checks, learning regex syntax, or debugging a complex expression that's misbehaving in production code.
Every developer has spent an afternoon debugging a regex that 'looks right' but doesn't match what they expect — usually because of greedy vs lazy quantifiers, unescaped special characters, or overlooked whitespace. A visual tester with instant feedback is the fastest way to converge on the correct pattern.
Because the tester runs your regex in the browser's JavaScript engine, the behavior matches exactly what you'll see in Node.js, browser JavaScript and Deno. Pattern syntax follows ECMAScript spec — if you need to test Perl, Python or PCRE regexes, be aware some features (like recursive patterns and named backrefs) differ.
How to use this tool
- 1Enter the required value in the input field above (domain, IP, URL, or text depending on the tool).
- 2Click the action button to run the check — results are computed instantly from our edge network.
- 3Review the parsed output, key fields and any warnings shown in the result card.
- 4Copy the result, share the page URL, or jump to a related tool from the sidebar to continue debugging.
Key features
- Live match highlighting as you type
- Capture group breakdown
- All JavaScript regex flags supported
- In-browser — never sends your patterns anywhere
Frequently asked questions
Related tools
Pretty-print, validate & minify JSON.
Percent-encode & decode URLs.
SHA-1/256/384/512 via Web Crypto.
Inspect JWT header, payload & claims.
Sign JWTs with HS256/384/512 in your browser.
Lint Content-Security-Policy for unsafe patterns.