Developer / Regex Tester

Regex Tester

Try a JavaScript regular expression against your own text and see every match, position and capture group. Matching runs in a background worker on this device — nothing is uploaded.

Pattern

Flags

The pattern is used exactly as typed, without leading or trailing slashes. Turn off g to test only the first match. JavaScript regex syntax applies, including named groups such as (?<year>2026).

0 characters

Highlighted matches

Matches appear here as you type.

0 matches

Match details

No matches yet.