Regex Tester

Runs locally

Test regular expressions with live match highlighting and capture groups, plus built-in examples.

Loading tool…

This tool runs locally in your browser — your content is never uploaded to a server.

How to use

  1. 1Enter your pattern and toggle flags like g, i, m, s, u with the flag buttons.
  2. 2Paste test text below — matches are highlighted live.
  3. 3Inspect each match’s position and capture groups; click “Examples” to load common regexes for email, phone, URL and more.
  4. 4When satisfied, click “Copy matches” to save, or “Clear” to test again.

FAQ

Related tools