Home/Regex Tester
Developer tool · runs locally

Regex Tester

Test JavaScript regular expressions with flags, live matches, capture groups and replacement output.

Ready
Test text
Replace withoptional
Matches
Enter a regex to see matches.
Replacement preview
Live matchingCapture groupsNo server request

Test regular expressions online

Use this tool to test JavaScript-compatible regular expressions against sample text. Flags such as g, i, m, s, u and y are supported by your browser.

Live matches

See every match and its character index.

Capture groups

Inspect captured subgroups for each match.

Replace preview

Test replacement strings before using them in code.

Private

All matching runs locally in your browser.