Skip to content

Utilities

Regex tester

Test JavaScript regular expressions with highlighted matches and capture groups.

Private Everything on these pages runs in your browser. What you type is never sent to a server and nothing is stored.

Flags

Matches

JavaScript (ECMAScript) syntax. The pattern runs in a background thread and is stopped after 1.5 seconds.

How to use it

  1. Enter the pattern and choose the flags.
  2. Paste the text to test.
  3. See the highlighted matches and the capture groups of each match.

Example

Input

/(\d{4})-(\d{2})-(\d{2})/  on  2026-11-22

Result

Match 2026-11-22, groups 2026, 11, 22

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript). Other languages differ in details such as lookbehind support, named groups and Unicode classes, so retest in your own language.

What happens with a catastrophic pattern?

The pattern runs in a background worker with a time limit. If it takes too long the test is stopped and you are told, instead of freezing the tab.

Related articles