Tools
Runs locally

Regex Tester

Highlights matches and capture groups.

Export and import are available after you sign in. Sign in

Runs in your browser against the text you provide. Pattern and text length are limited.

About this tool

Build and debug regular expressions before putting them in code. Type the pattern and flags, paste sample text, and every match is highlighted as you type.

How to use it

  1. 01

    Type the regular expression.

  2. 02

    Set flags such as g, i or m.

  3. 03

    Paste the text and review the highlighted matches.

FAQ

Frequently asked questions

Which regex flavor is used?

JavaScript regular expressions, the same engine your browser and Node.js use.

Is there a size limit?

Pattern and text length are limited so a runaway expression cannot freeze the page.