wansify.ventures
Tools

Regex Tester

Test patterns with flags, highlighted matches, and capture groups.

Matches
—
Flags
g
Pattern
Flags

About this tool

What is the Regex Tester?

The Wansify Regex Tester lets you write a regular expression, set flags, and see live matches and capture groups highlighted against your sample text in the browser.

How to use it

  1. 1Enter a pattern and optional flags such as g, i, m, s, or u.
  2. 2Paste the text you want to test against.
  3. 3Read highlighted matches and the list of capture groups.
  4. 4Try a sample pattern or copy the RegExp literal.

Features

  • Live match highlighting
  • Capture groups and match index list
  • Flags: g, i, m, s, u, y
  • Common pattern presets
  • Clear error messages for invalid patterns
  • Copy the RegExp literal
  • Runs in your browser

FAQ

Common questions about the Regex Tester

Which regex flavour does this use?

JavaScript RegExp, the same engine used in browsers and Node.js.

Why is the global flag important?

With g, every match is listed. Without g, only the first match is returned.

Is the regex tester free?

Yes. It is free to use with no sign-up.