Test JavaScript regular expressions with live highlighting, match positions and capture groups.

How to use

  1. Type your pattern and flags.
  2. Paste the text to test.
  3. Review highlighted matches and groups.

Frequently asked questions

Which regex flavour is used?

The JavaScript (ECMAScript) engine built into your browser.

Why did my pattern stop?

Patterns that take longer than 2 seconds are stopped to protect your browser from catastrophic backtracking.

Is my data uploaded anywhere?

No. Everything runs inside your browser, so nothing you enter is sent to a server.

More free tools: see all tools.