RegExp Tester

Test JavaScript regular expressions with live match highlighting, capture groups and named groups. Free online regex tester.

About this tool

Test JavaScript regular expressions against your text. Matches are highlighted and listed with their position, capture groups and named groups.

How to use

  1. Enter a pattern and flags such as g, i, m or u.
  2. Paste the test text.
  3. Review the highlighted matches and groups.

Frequently asked questions

Which regex flavor is used?

The JavaScript (ECMAScript) engine of your browser, including named groups, lookbehind and the u and s flags.

Why is only one match shown?

Without the g flag a regex returns only the first match.

Is there a match limit?

Up to 1,000 matches are listed to keep the page responsive.

Related tools