About this tool
Test and debug regular expressions in real time with visual match highlighting, capture group extraction, flags support, and instant regex presets.
Test regular expressions with real-time match highlighting, regex flags, capture groups, and common presets.
Optional flags: g i m s u y
Example
Run the tool to generate output.
Test and debug regular expressions in real time with visual match highlighting, capture group extraction, flags support, and instant regex presets.
Use Regex Tester when writing search, replacement, or validation logic for web applications, form validation, data extraction, or log parsing.
Test a robust email validation pattern like `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$` against valid and invalid email test cases.
Extract domain names and query parameters from server logs using named capturing groups `https?://(?<domain>[^/]+)(?<path>/[^?]*)?`.