ToolPit
← All Tools

Regex Tester

Test regular expressions with live match highlighting and group capture.

//
2 matches
Contact us at hello@example.com or support@test.org for help.
hello@example.com @14support@test.org @35

Test regular expressions with live match highlighting, capture groups and replace previews. ToolPit supports the JavaScript regex flavor — exactly what your frontend and Node.js will run.

How to test a regex

  1. Type your pattern and flags (g, i, m, s, u).
  2. Paste sample text into the test area.
  3. ToolPit highlights every match and capture group inline.
  4. Use the replace tab to preview replacements with $1, $2 backreferences.

Frequently asked questions

Which regex flavor does this support?+

JavaScript's ECMAScript regex — what runs in browsers and Node.js. Lookbehinds, unicode classes and named groups are supported.

Why is my regex not matching multiline text?+

Add the m flag for multiline mode. The ^ and $ anchors will then match at line boundaries instead of the whole string.

How do I escape special characters?+

Prefix them with a backslash: \., \?, \(, \). Inside character classes only ], \, ^ and - need escaping.