Every Drawer
All tools

Regex Tester

Test a regular expression on your text, with matches highlighted, groups in a table and optional replacing.

How it works

Test a regular expression on your text, with matches highlighted, groups in a table and optional replacing.

  1. Paste your sample text in the box.
  2. Type a Pattern and Flags, and a replacement if you like.
  3. Press Copy to take the matches or result.

Good to know

How do I use a captured group in the replacement?

Write $1 for the first bracketed group, $2 for the second, or $& for the whole match.

More like this