DevTools Hub

Search tools

Search for a developer tool

Development

Regex Tester

Test JavaScript regular expressions with live match highlighting.

//gi
2 matches
Contact us at support@devtools-hub.com or sales@devtools-hub.com for help.
Matches & groups
  • [14] "support@devtools-hub.com"
    groups: $1="support"$2="devtools-hub.com"
  • [42] "sales@devtools-hub.com"
    groups: $1="sales"$2="devtools-hub.com"

Testing JavaScript regular expressions

This tool runs your pattern against the test string using the browser's native RegExp engine — the exact same engine your JavaScript code will use at runtime, so what you see here is exactly what you'll get in production.

Common flags

FAQ

Why do numbered groups show as $1, $2...?

That's the standard reference syntax for capture groups in JavaScript replacement strings — group 1 is the first (...) in your pattern, in order.

Related tools