Diagnostic suite · live

Regex Tester

Test JavaScript regular expressions live — see matches, groups and errors as you type.

Matches
2
Groups
4
Flags
gi
Status
Valid
Pattern
Test string
Contact us at hello@dnsblade.com or sales@example.com.
2 matches
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

  1. 1Enter the required value in the input field above (domain, IP, URL, or text depending on the tool).
  2. 2Click the action button to run the check — results are computed instantly from our edge network.
  3. 3Review the parsed output, key fields and any warnings shown in the result card.
  4. 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
Related searches: regex tester · regex validator · javascript regex · online regex tool · regex debugger · regex builder

Frequently asked questions

Greedy quantifiers (*, +, {n,}) match as much as possible then backtrack. Lazy quantifiers (*?, +?, {n,}?) match as little as possible. Use lazy when matching content between delimiters, like `<.+?>` to match individual HTML tags.