Skip to content
toola.

/\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.
#MatchIndexGroups
1hello@toola.tools9$1=hello $2=toola.tools
2support@example.com30$1=support $2=example.com

How to use Regex tester

  1. Step 1: Type the pattern and choose flags.

  2. Step 2: Paste the text to test against.

  3. 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.