Regex Tester

Test regular expressions against live text: match count, positions, capture groups and flag controls — errors explain exactly what is wrong.

Developer Tools 100% in your browser

How to use

  1. Type the pattern (without / delimiters).
  2. Toggle the flags you need (g, i, m, s, u, y).
  3. Paste the test text and read the match list.

Example

Input: \b\w+@\w+\.\w+\b over 'mail bob@corp.com'

Output: 1 match @5: bob@corp.com

How it works

The pattern is compiled as a JavaScript regular expression and run against the test text. Matches are highlighted and capture groups are listed. Invalid patterns report their syntax error.

Limits & compatibility

  • The browser's ECMAScript regex engine — not PCRE or RE2.
  • Match list shows up to 200 matches; the total is always accurate.
  • Zero-length matches advance by one character to avoid infinite loops.

Privacy

All testing runs locally in your browser. Nothing is transmitted, logged or stored.

Related tools

FAQ

Questions about Regex Tester

Is my input private?

Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.

How accurate is the result, and what are the limits?

The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.

What happens to files I open with this tool?

Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.