Skip to content
WebTricks

Regex tester

Test a regular expression against text with live match highlighting and capture groups. Powered by the native engine.

Flags2 matches
Matches
Contact us at hi@webtricks.dev or support@example.com for help.

About this regex tester

Write a regular expression and see every match highlighted in your test text in real time, along with captured groups. It uses the browser’s native JavaScript regex engine, so behavior matches exactly what your JS/TS code will do — no surprises from a different flavor.

Flags

Toggle the standard JavaScript flags:

  • g — global: find all matches, not just the first.
  • i — case-insensitive.
  • m — multiline: ^ and $ match at line breaks.
  • s — dotall: . also matches newlines.
  • u — unicode mode.

How to use it

  1. Type your pattern (no slashes needed).
  2. Toggle the flags you want.
  3. Paste the text to test — matches highlight as you type, with a live count.

FAQ

Which regex syntax is this?

ECMAScript (JavaScript) regular expressions, the same as new RegExp() and String.prototype.match. Patterns that rely on PCRE-only features like recursion or possessive quantifiers won't apply.

Does it send my text anywhere?

No — matching runs entirely in your browser with the native regex engine.