Enter a regular expression pattern and a test string to see all matches highlighted in real time. Supports the global, case-insensitive, multiline, and dotAll flags.
MODE
The tool uses the browser's native JavaScript RegExp engine. Patterns are compiled with new RegExp(pattern, flags) and results are computed synchronously. Invalid patterns show an error badge, they never crash the page.
Both the pattern and the test string are processed entirely in your browser. Our servers are not involved at any point.
For plain substring swaps without regex, try find and replace. To validate JSON patterns you are matching, use the JSON formatter. For decoding escape sequences in HTML attribute values, see HTML entities.