Regex Tester

Test a regular expression against your text: live highlighting, capture groups and clear error messages.

Pattern

—

Test text

Matches

0 matches
Matches appear here

How to use

Three steps, no sign-up

Enter a pattern

Without the surrounding slashes.

Paste test text

Matches highlight as you type.

Check groups

Capture groups appear below.

FAQ

Why are no groups shown?
Only parenthesised parts are capture groups, e.g. (\d+) captures digits. Groups are listed under the highlights.
Which flags are supported?
g (global), i (ignore case), m (multiline) and s (dot matches newline).
Is my text uploaded?
No. Matching runs in your browser.

You may also need