Home › Developer Tools › Regex Tester
Real-time regex testing · match highlighting · group capture · replace · flags: g i m s u y
1. Enter your regex pattern
Type your regular expression in the pattern field. Toggle flags (global, case-insensitive, multiline, dotall) as needed.
2. Paste your test string
Add the text you want to test against. Matches highlight in real time as you type - no submit button needed.
3. Review matches and groups
See every match position, capture group value, and index listed below the input. Edit the pattern and watch the results update instantly.
JSON Formatter
Validate and format JSON that your regex will be parsing.
HTML Encoder / Decoder
Encode special characters that appear in regex patterns.
Markdown Previewer
Preview regex documentation written in Markdown.
JavaScript Minifier
Minify JS code that contains your tested regex patterns.
- Live match highlighting - see matched substrings highlighted in the test string as you type.
- Capture group breakdown - view each group value and index separately, not just the full match.
- Flag controls - toggle global, case-insensitive, multiline, and dotall modes instantly.
- JavaScript RegExp engine - results match what your actual JS code will produce.