A regular expression describes a pattern of text. Developers use them for validation, log parsing, search and replace, and data extraction, but a small mistake such as a missing escape or a greedy quantifier can silently match the wrong text. Testing the pattern against real samples catches those errors before the code ships.
This tester uses the JavaScript RegExp engine that your browser runs, so the results match what Node.js and browser code will do with the same flags. Each match is highlighted in the text, its index is listed, and numbered groups show what each parenthesis captured.
The Global flag controls whether the tester looks for every match or only the first. Ignore case, Multiline and Dot-matches-newline change how ^, $, . and letter case behave. Replacement supports $1-style references to capture groups.