WhatIPIP tools + free calculators
Free tool, no signup

JavaScript Regex Tester

Test a regular expression against any text, see matches and capture groups live.

Matches (9)
The quick brown fox jumps over the lazy dog.
Capture groups (first match)
  • wordThe
  • $1The
About this tool

A regular expression is a compact pattern language for finding and extracting structure in text. It is one of those tools that pays off forever once you spend a few hours learning it. This tester uses the JavaScript regex engine, which is also the engine behind Node.js, modern browsers, and many JSON-handling tools. Type a pattern, choose flags, paste a test string, and see every match highlighted as you type. Capture groups, both numbered and named, appear in the results panel next to each match. The tool also reports common errors like unbalanced parentheses or invalid character classes. Use it to debug a stubborn regex from production logs, build a new pattern incrementally with feedback, or sanity-check that a pattern handles edge cases like empty strings, Unicode characters, and unusual whitespace.

Frequently asked questions

5 questions answered

It uses the JavaScript regex engine, which matches what runs in Node.js and every modern browser. PCRE (used in PHP, Perl, and grep -P) is mostly compatible but differs in lookbehind support, possessive quantifiers, and some Unicode handling. Python's re module is also similar but not identical.

Related tools

This tool runs in your browser. We do not log or store the data you enter. Results are returned by your own browser and may not match third-party services bit-for-bit if those services interpret edge cases differently.