Regex Tester
Test regular expressions against text. See all matches highlighted with capture groups.
Regular expressions are powerful but notoriously tricky to get right. This regex tester lets you type a pattern, set flags, and test it against any text to see all matches instantly. Each match is listed with its position and any capture groups.
The tool uses JavaScript's native RegExp engine, so it supports all standard regex features: character classes, quantifiers, lookaheads, lookbehinds, named groups, and more. Everything runs in your browser with no data sent to any server.
The tool uses JavaScript's native RegExp engine, so it supports all standard regex features: character classes, quantifiers, lookaheads, lookbehinds, named groups, and more. Everything runs in your browser with no data sent to any server.
Tester
Results
—
How to Use
- Enter your regex pattern
- Set optional flags (g for global, i for case-insensitive, m for multiline)
- Paste your test string
- Click Calculate to find matches
FAQ
Which regex flavor is used?
The tool uses JavaScript's native RegExp engine. It supports all standard features including lookahead, lookbehind, named groups, and Unicode.
What flags are supported?
Common flags: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode). Combine them like 'gi'.
Is my text sent to a server?
No. All testing runs in your browser. Your data never leaves your device.
Learn More
Guides that feature this tool
Working with Text: Tools for Writers and Developers
Word counts, JSON formatting, regex testing, encoding — the text tools you need.
6 min readJSON & API Tools: The Developer's Browser-Based Toolkit
Format JSON, decode JWTs, generate UUIDs, and test regex — all from your browser with zero setup.
8 min readPart of These Collections
Curated tool sets for specific workflows
Thank you! Your report has been submitted.