Email validation
/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
Simple email shape check  not RFC-compliant, but practical.
Test regex with practical examples, quick cheatsheet patterns, and common use cases.
Regex Tester lets you build, test, and debug regular expressions against real text in real time. Type a pattern and matches highlight instantly, with capture groups, named groups, and named backreferences shown side-by-side.
Built on the browser native RegExp engine, it supports all standard ECMAScript regex flags (g, i, m, s, u, y) and the lookahead, lookbehind, and character class features you would expect.
Every match and capture group is highlighted as you type.
Global, case-insensitive, multiline, dotall, unicode, sticky.
Numbered and named groups extracted into a clear table.
Run substitutions with $1, $2, and $<name> references.
Each token (anchor, quantifier, character class) explained inline.
Paste a multi-line input and see matches across all lines.
Type your regex in the pattern field, with or without delimiters.
Toggle global, case-insensitive, multiline, etc.
Drop in the text you want to match against.
Matches highlight in real time, and capture groups appear in a table.
/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
Simple email shape check  not RFC-compliant, but practical.
/https?:\/\/[^\s]+/g
Pull every URL out of a block of text.
/(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/
Parse ISO dates with named capture groups.
Use Regex Tester when you need fast live regex highlighting, match counts, indexes, and common pattern presets in the browser.
Do not use regex as your only validation for complex formats or security-sensitive parsing. Prefer formal parsers where available.
ECMAScript / JavaScript regex, the same flavor your browser uses for String.prototype.match and RegExp. It is similar to PCRE but does not support recursive patterns, conditional regex, or possessive quantifiers.
Yes. Everything runs locally with no network calls. Your patterns and the text you test against never leave your browser.
Yes. Modern browsers support both lookahead (?=...) and lookbehind (?<=...), including the negative variants. Older browsers (pre-2019) may not support lookbehind.
Add the m flag to make ^ and $ match at line boundaries. Add the s flag to make . match newlines. Together they cover most multi-line use cases.
Prefix with a backslash. The metacharacters that need escaping are . ^ $ * + ? ( ) [ ] { } | and the backslash itself.
Catastrophic backtracking. Patterns like (a+)+b against a long string of as explode in runtime. Use possessive-style alternatives, atomic groups (where supported), or rewrite with non-overlapping alternatives.
Yes. Switch to replace mode and use $1, $2 for numbered groups or $<name> for named groups in the replacement string.
Kitpace ships 80+ free, browser-based tools for developers, designers, marketers, and everyday tasks. No signup, no tracking, no fees.
Validating user input (emails, phone numbers, dates) before submitting forms
Type your regex in the pattern field, with or without delimiters.
Every match and capture group is highlighted as you type.
No. Regex matching runs locally in the browser.
Yes. Regex Tester highlights matches live in the test text.
Yes. Regex Tester includes common presets like email, URL, date, phone, UUID, color, and JWT.
Last updated: May 2026. Maintained by: Kitpace.
Regex Tester by Kitpace is a free browser-based regular expression tester. It highlights matches live, supports regex flags, includes common presets for email, URL, dates, phones, UUIDs, colors, JWTs, and files, and shows match indexes without signup.