/\w+@/g
Regex tester
Type a regular expression and some test text to see every match highlighted as you type, with the position and capture groups of each. Toggle the g, i, m, s and u flags and try a replacement with $1, $2 or named groups. It uses your browser’s JavaScript regex engine, the same one Node.js uses.
Private: your files never leave your device.
//gi
2 matches
Write to hello@toola.tools or support@example.com.
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | hello@toola.tools | 9 | $1=hello $2=toola.tools |
| 2 | support@example.com | 30 | $1=support $2=example.com |
How to use Regex tester
Step 1: Type the pattern and choose flags.
Step 2: Paste the text to test against.
Step 3: Check the highlighted matches and groups; try a replacement below.
Frequently asked questions
Which regex flavour is this?
JavaScript (ECMAScript), as used in browsers and Node.js. Lookbehind, named groups and Unicode property escapes are supported.
How do I use groups in the replacement?
$1, $2… insert numbered groups, $<name> a named group, and $& the whole match.
Is my text sent anywhere?
No. Matching happens in your browser.