ekofyi
Livemiscshipped v1.0.0

Regex Playground

An interactive regex testing environment. Write patterns and see matches highlighted in real-time. Inspect capture groups, named groups, and match indices. Includes a built-in cheat sheet, common pattern library, and support for JavaScript regex flags. Test against multiple strings simultaneously.

regextestingpatterndeveloper-tools
//g
flags:
presets:
live highlight (2 matches)
Contact us at hello@ekofyi.com or support@example.org. Also: not.an.email@dot. and 12345@bad

Match details

match 1:hello@ekofyi.com@ 14
[1]: hello
[2]: ekofyi
[3]: com
match 2:support@example.org@ 34
[1]: support
[2]: example
[3]: org
Cheat sheet
\ddigit (0-9)
\Dnon-digit
\wword char
\swhitespace
.any (except \n)
^start of string/line
$end of string/line
*0 or more
+1 or more
?0 or 1 (lazy after qty)
{n}exactly n
{n,m}n to m
[abc]any of a, b, c
[^abc]none of a, b, c
(...)capture group
(?:...)non-capture group
(?<n>...)named group
(?=...)lookahead
(?!...)neg lookahead
🔍 Explanation (14 tokens)
(Start capture group
[a-zA-Z0-9._-]Match any character in: a-zA-Z0-9._-
+1 or more (greedy)
)End group
@Match literal "@"
(Start capture group
[a-zA-Z0-9.-]Match any character in: a-zA-Z0-9.-
+1 or more (greedy)
)End group
\.Match literal dot
(Start capture group
[a-zA-Z]Match any character in: a-zA-Z
{2,}Repeat 2, times
)End group
💻 Code generator
const regex = /([a-zA-Z0-9._-]+)@([a-zA-Z0-9.-]+)\.([a-zA-Z]{2,})/g;
const matches = text.match(regex);
// or: regex.exec(text) for detailed match info

🔒 Uses native JavaScript RegExp engine. Limited to 10k matches per run.