Development tool

Regex Tester

Test JavaScript regular expressions, inspect matching text, and review capture groups in your browser.

Your data is processed locally in your browser and is not sent to our server.

Result

Your result will appear here.

Highlighted matches

How to use Regex Tester

  1. Enter a JavaScript regular expression and flags.
  2. Paste test text to see matches and capturing groups.

Example

Pattern: \b[A-Z][a-z]+\b
Flags: g
Text: Hello from DevTools Hub

Technical details

Uses JavaScript RegExp syntax and flags. Catastrophic backtracking patterns may block the browser; use trusted, bounded input.

Frequently asked questions

Does this use PCRE?

No. It uses the JavaScript regular expression engine and its supported flags.