Skip to content

Regular Expression Tester

Test a JavaScript regular expression against your text and see every match, capture group and named group.

//

Input

2 match(es)
#MatchIndexGroups
1contact@onuel.dev0contact · onuel.dev
2support@example.com22support · example.com

Testing a pattern against real text

Every match is listed with its position, its capture groups and any named groups, so you can see exactly what a pattern is picking up rather than whether it merely matched.

The flags are the JavaScript ones: g for every match, i for case-insensitive, m to make ^ and $ match line boundaries, s to let . match newlines, u for full Unicode support.

Frequently asked questions

Which regex dialect is this?

JavaScript (ECMAScript). Patterns written for PCRE, Python or Go mostly transfer, but lookbehind support and some escapes differ.

Why does my pattern with .* run slowly?

Nested quantifiers over the same text cause catastrophic backtracking. Matching is capped here to keep the page responsive, but the same pattern would hang a server.

Related tools