Regex Tester

Type a pattern, see every match light up as you type.

  • Live highlighting
  • All JS flags
  • Nothing is uploaded

Test a pattern

Flags

Type a pattern and some text to test it.

How it works

Every keystroke runs your pattern against the text with the JavaScript engine and highlights each match in place. The count sits above the text, and a broken pattern shows the exact syntax error instead of silence.

pattern + flags → highlighted matches

Flag guide

  • g: find all matches, not just the first.
  • i: ignore upper/lower case.
  • m: ^ and $ match each line.
  • s: dot matches newlines too.
  • u: full Unicode mode (needed for \p{…}).
  • y: sticky — match only from the current position.

Tips

  • Escape dots in domains: example\.com, not example.com.
  • Test with a failing example too — a pattern that matches everything proves nothing.
  • Everything runs in your browser; nothing is uploaded.

Standards and sources

Last reviewed October 13, 2026

Frequently asked questions

Which flavor of regex is this?

JavaScript (ECMAScript) — the same engine websites use, including lookahead and named groups.

Why is my pattern red?

The message under the field quotes the exact syntax error, so fix that spot first.

Is my test text sent anywhere?

No. Matching runs entirely in your browser.

Related tags

Other tools

Results are for reference only. Calculations may be wrong and are not legal, medical or financial advice. Always confirm with the relevant authority or a professional before important decisions.

Search