Free online tool

Test a regular expression against text

Enter a pattern and sample text to inspect matches and captured groups. The browser's regular-expression engine runs the test locally.

Open the interactive Regex Tester / Matcher

The interactive tool loads in the page. Enable JavaScript to enter data, process content, and download results.

Quick guide

How to use this tool

  1. 01Enter a pattern and any supported flags.
  2. 02Paste the text to test.
  3. 03Review matches, captures, or a readable pattern error.

Capabilities

Features and supported formats

  • Shows matches and capture groups.
  • Supports JavaScript regular-expression syntax.
  • Runs locally against the text you provide.

Supported formats

Input: JavaScript regular-expression pattern and plain text.

Answers

Frequently asked questions

Which regex syntax is supported?

The tester uses the JavaScript RegExp engine, so syntax and flags follow the browser's JavaScript implementation.

Why does a pattern fail to compile?

The pattern may contain an unmatched bracket or parenthesis, an invalid escape, or a flag unsupported by the browser. Review the displayed syntax message.