Regex Tester
Test a regular expression against target text and inspect highlights, indices, and capture groups.
Test a regular expression against target text and inspect highlights, indices, and capture groups.
Type or paste content directly. Processing stays in the browser whenever possible.
Process some input and the result will appear here.
Enter the regex pattern and flags in settings.
Paste the text to test in the input area.
The output shows highlighted matches, match count, and capture groups.
Debug patterns for email, phone numbers, or logs.
Validate frontend form rules quickly.
Check how g, i, and m flags affect matches.
The first version supports g, i, and m.
With g enabled, all matches are highlighted. Without it, only the first match is shown.
The page shows the RegExp construction error immediately.