Regex Tester

Test regular expressions with live matches, groups, and replacements.

Flags

Write a pattern to see live matches, a capture-group table, and a replacement preview.

Try
//g

Test text

What the pattern runs against

Capture groups

No captures yet. Groups appear here once the pattern matches.

Replace preview

About

Your pattern is compiled by the browser's own engine, so behaviour matches what your JavaScript will do exactly.