Regex Tester

Test JavaScript regular expressions against text, see highlighted matches, indexes and capture groups.

How to use Regex Tester

  1. Enter your pattern and flags.
  2. Paste test text.
  3. Review the highlights and the matches table.

Supported features and limitations

Uses your browser’s JavaScript (ECMAScript) regex engine; other languages’ syntax such as PCRE or Python may differ. Matches are capped at 2,000. Catastrophic patterns on long text can slow the page.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

Which regex flavour is this?

JavaScript (ECMAScript).

What do flags mean?

g = all matches, i = ignore case, m = multiline, s = dot matches newlines, u = Unicode.

Related tools

More Developer & Webmaster Tools · All free tools