Tool
Regex Tester
Type a pattern and see the matches in the text instantly. Capture groups are listed in a table, and you can preview the replacement too.
Runs in your browser — no data is sent to the server.
$1, $<name>, $& (whole match) can be used.
Matches
Replace preview
- Your browser's JavaScript (ECMAScript) regex engine is used:
(?<name>…)named groups,(?<=…)lookbehind and\p{L}(u) are supported. - Matching runs in a separate Web Worker. If it does not finish in 1 second it is stopped, so patterns such as
(a+)+$that hit catastrophic backtracking cannot lock the page. - Up to 5,000 matches are found; the table shows the first 200.