Regex Tester

Test regular expressions with live highlighting.

Write a regular expression and see every match and capture group highlighted live.

🔒 Runs in your browser.

How to use the regex tester

  1. Enter a pattern and flags.
  2. Paste test text.
  3. Review highlighted matches and groups.

Common flags

g finds all matches, i ignores case, m makes ^ and $ match line starts/ends, s lets . match newlines, u enables full Unicode.

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript).

Why no matches?

Check escaping – in this box, type \d not \\d.

Can it handle lookbehind?

Yes, in modern browsers.

Guides

Related free tools

See all 147 free tools →