developer
Free
No signup
Regex Tester & Debugger
Test regular expressions with real-time match highlighting, capture groups, and replace mode.
Loading tool…
About this tool
Interactive regex testing tool. Enter a pattern and test string to see all matches highlighted in real time. View capture groups, named groups, and match positions. Switch to Replace mode to preview substitutions. Supports all JavaScript regex flags (g, i, m, s, u).
How to use
- 1 Enter your regular expression in the Pattern field.
- 2 Optionally add flags (g for all matches, i for case-insensitive, m for multiline).
- 3 Paste your test string — matches are highlighted in real time.
- 4 Switch to Replace tab to preview substitutions with $1, $2, or named groups.
Frequently Asked Questions
Related tools
JSON Formatter & Validator
Format, validate, and minify JSON — with syntax error pinpointing.
Text Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, and kebab-case instantly.
URL Encoder / Decoder
Percent-encode or decode URLs and query parameters — full and component modes.