← All tools
// Text

Regex Match Extractor & Replacer online

Test regex, extract matches and capture groups, and replace text — runs in your browser

Chunky Munster mascot
by
CHUNKY
MUNSTER
/ /
// Matches
Output will appear here...

Regular expressions are one of the most powerful tools in a developer's arsenal. This regex tester supports four modes: extracting all matches, extracting capture groups, find-and-replace, and filtering lines that contain matches — all running entirely in your browser with JavaScript's built-in regex engine.

Common Regex Patterns

Regex Flags

Frequently Asked Questions

What regex engine does this use?

This tool uses JavaScript's built-in RegExp engine, the same engine used in Node.js and all modern browsers. The syntax follows the ECMA-262 specification.

How do I use capture groups?

Wrap parts of your pattern in parentheses: (\w+)@(\w+). Use the "Extract groups" mode to see each group's captures separately. In replace mode, use $1, $2, etc. to reference groups.