Test regular expressions live - highlight matches, inspect capture groups and preview replacements. Runs in your browser.
| # | Match | Groups | Index |
|---|
A regular expression (regex) is a pattern used to search and manipulate text. This tester lets you build a pattern, toggle flags, and instantly see what it matches in your sample text, inspect the capture groups, and preview a find-and-replace - all evaluated locally in your browser using JavaScript's RegExp engine.
$1, $2, $&) to preview the result.