Regex Tester

Test regular expressions instantly, highlight matches, inspect capture groups, and preview replacements.

Supports common JavaScript Regex flags. Without g, only the first match is shown and replace only updates the first match.
Pattern and test text
Enter a regular expression, choose flags, then paste the text to inspect.
//

Flags

Matches

4

Groups

8

Flags

g

Match highlight
Matched text is highlighted so you can quickly verify the pattern targets the right ranges.
Ada builds tools. Grace reviews Regex patterns. Linus tests replacements.
Capture groups
Review every match position, numbered group, and named group.

Ada

index 0

$1

Ada

name

Ada

Grace

index 18

$1

Grace

name

Grace

Regex

index 32

$1

Regex

name

Regex

Linus

index 48

$1

Linus

name

Linus

Replace preview
Preview replacements using the current pattern, flags, and replacement string.
[Ada] builds tools. [Grace] reviews [Regex] patterns. [Linus] tests replacements.
Regex Tester | Widget Polymer