Regex Tester

Test JavaScript regular expressions with live match highlighting and groups.

Highlighted matches

About this tool

Type a pattern and some text to see matches highlighted instantly, along with captured groups. Optionally preview a replacement.

How to use Regex Tester

  1. Enter your pattern and flags.
  2. Paste the text to test.
  3. Review highlighted matches, groups and the replacement result.

Frequently asked questions

Which regex flavor is used?

JavaScript (ECMAScript). Other languages may differ slightly.

What do the flags mean?

g finds all matches, i ignores case, m makes ^ and $ match per line, s lets . match newlines.