Test a regular expression and see every match and group.
The regex tester runs a JavaScript regular expression against a test string and highlights every match while you type. Each match is listed with its position, numbered capture groups and named groups, and you can preview a replacement with references such as $1 or $<name>.
All the flags are supported: g (global), i (ignore case), m (multiline), s (dot all), u (unicode), v, y (sticky) and d (indices).
Matches are highlighted as you type.
Numbered and named capture groups for every match.
See the result of a replacement with group references.
Invalid patterns show the exact error.
JavaScript (ECMAScript), the same as in browsers and Node.js. Most syntax is shared with PHP and Python.
Add the g flag to find all the matches.
Escape it with a backslash: \. or \[.
Groups written as (?<name>…) that can be read by name instead of number.