Toolibra

Regex Tester

Write a regular expression and see every match highlighted as you type, with all capture groups listed in a table. Test a replacement too.

🔒 Your files are processed on your device and are never uploaded.

How to use

  1. 1Type your pattern between the slashes and pick the flags.
  2. 2Paste the text to test. Matches are highlighted live.
  3. 3Optional: turn on Replace to try a replacement with $1, $2…

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript), as used in browsers and Node.js. It is very close to PCRE, Python and Java for most patterns.

How do I use groups in the replacement?

Use $1, $2… for numbered groups, $<name> for named groups and $& for the whole match.

Is my data sent anywhere?

No. Everything runs in your browser, so your data stays on your device.

More free tools