← All tools

Regex Tester

Test regular expressions against sample text with live matches.

//g

Overview

This tool runs a JavaScript-flavored regular expression against your sample text and highlights every match, so you can iterate on a pattern quickly.

How to Use

  1. Type or paste your regular expression.
  2. Paste sample text to test it against.
  3. Matches and capture groups are highlighted live.
  4. Adjust flags (g, i, m, etc.) as needed.

Common Use Cases

  • Validating input formats like email or phone numbers
  • Extracting structured data from log lines
  • Debugging a regex that isn't matching as expected

FAQ

Which regex flavor does this use?

It uses standard JavaScript (ECMAScript) regular expression syntax, the same engine used in browsers and Node.js.

Related Tools