Regex Tester

Test regular expressions live with highlighted matches and groups. Test regular expressions online with live match highlighting, capture-group tables and common flags. Includes a cheat sheet. Free regex playground.

Esta ferramenta roda 100 % no seu navegador. O que você digita nunca é enviado a servidor algum: você pode até ficar offline depois de carregar a página.

Sobre o Regex Tester

Regular expressions are powerful and notoriously fiddly — a single missing escape changes everything. This tester shows matches highlighted inside your sample text as you type, lists every capture group with what it matched, supports the i, g, m and s flags, and reports pattern errors with their positions instead of failing silently. A built-in cheat sheet keeps the meaning of ?, +, * and friends one glance away.

Como usar o Regex Tester

  1. Enter your regular expression without surrounding slashes.
  2. Toggle the flags you need.
  3. Paste sample text — matches highlight instantly.
  4. Study the group table to refine your pattern.

Principais recursos

Which regex flavour does this tester use?
It runs your browser's native JavaScript engine, so patterns behave exactly as they will in your JavaScript code.
Why does my pattern match nothing in "global" mode?
The g flag returns all matches but changes how lastIndex behaves — if a pattern worked without g and fails with it, an anchored ^/$ combined with the m flag is the usual culprit.

Ferramentas de Ferramentas para desenvolvedores relacionadas

Mais utilitários da mesma categoria.

Ver todas →