Test regular expressions live with match highlighting, capture groups, and replace mode. Full support for JavaScript regex flags and named groups.
A regex tester is a tool for building and debugging regular expressions. You write a pattern, feed it test text, and see immediately which parts of the text match, which capture groups are populated, and where the matches occur. It's essential for anyone who writes regex — developers, data analysts, SEO specialists, system admins, and technical writers.
g, i, m, s, u, y.abc matches ABC, Abc, etc.^ and $ match the start and end of each line, not just the whole string.. matches newline characters too. Normally it stops at line breaks.\p{...} property escapes.lastIndex. Used for tokenizers.Paste this sample text into the test box, then try these patterns:
Contact us at hello@example.com or support@multitoosite.com. Visit https://multitoosite.com for more tools. The date is 2025-01-15 and the version is v2.4.1. Colors: #3b82f6, #10b981, #ef4444.
\w+@\w+\.\w+https?://\S+\d{4}-\d{2}-\d{2}v\d+\.\d+\.\d+#\w{6}(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})In Replace Mode, the replacement string supports these tokens:
This tool uses JavaScript (ECMAScript) regex, which is one of the most widely supported engines. Most patterns work identically across JavaScript, Python, PCRE, Go, Java, and .NET — but there are exceptions. Lookbehind, named groups, and Unicode property escapes have slightly different syntax across languages. If you're testing for a specific platform, check that platform's regex documentation for any quirks.
Some patterns can cause "catastrophic backtracking" — where the regex engine tries an exponential number of combinations. If the browser feels frozen, try simplifying your pattern, adding anchors, or using atomic groups (not supported in JavaScript) or possessive quantifiers where available. The timing shown in the stats bar reveals slow patterns.
Everything runs in your browser. Your patterns and test text are never uploaded to a server, never stored, and never shared.