Regex Tester

Test JavaScript regular expressions live. See every match highlighted, capture groups parsed, and a replace preview. Everything runs in your browser.

Pattern

//g

Test string

Matches highlighted

Reach me at akhil@eximpe.com or support@pyrelo.in. Old: rohan@example.org.

3 matches

Replacement

Reach me at [email] or [email]. Old: [email].

Match details

Match #1 at index 12

akhil@eximpe.com

$1akhil
$2eximpe.com

Match #2 at index 32

support@pyrelo.in

$1support
$2pyrelo.in

Match #3 at index 56

rohan@example.org

$1rohan
$2example.org

The regex engine is your browser's native RegExp. Patterns and text never leave the page.

FAQ

What regex flavour does this use?

JavaScript regex (ECMAScript). Most patterns translate directly to other engines but a few features (lookbehind, named groups, Unicode property escapes) behave slightly differently in older browsers. Match against your real runtime if it matters.

Which flags are supported?

g (global), i (case-insensitive), m (multiline, ^/$ per line), s (dotAll, . matches newlines), u (Unicode), and y (sticky). Toggle them with the checkboxes.

What does the Replace box do?

Live preview of `text.replace(regex, replacement)`. You can use $1, $2 backreferences and named groups ($<name>). The result updates as you type.

Is my input sent anywhere?

No. Regex and text never leave your browser tab. The matching is run by your browser's own regex engine.

More Website Tools