Microdeck.tools 100% no navegador

Testador de Regex, Depurador e Guia Rápido

New

Teste expressões regulares JavaScript com destaque de correspondências, grupos de captura, prévia de substituição e guia de tokens.

100% no navegador Sem envio ao servidor Resultados na hora
//g

Matches highlighted · 2 found

Order 2026-03-14: 3 items, total $45.50
Order 2026-04-02: 1 item, total $9.99
Contact: sales@example.com, support@example.org
#MatchPositionGroups
12026-03-146–16$1 = "2026" · $2 = "03" · $3 = "14" · year = "2026"
22026-04-0246–56$1 = "2026" · $2 = "04" · $3 = "02" · year = "2026"
Order 2026/03/14: 3 items, total $45.50
Order 2026/04/02: 1 item, total $9.99
Contact: sales@example.com, support@example.org

What the pattern means

  • (?<year> start of the capture group named year
  • \d a digit
  • {4} exactly 4 times
  • ) end of group
  • - the character -
  • ( start of a capture group
  • \d a digit
  • {2} exactly 2 times
  • ) end of group
  • - the character -
  • ( start of a capture group
  • \d a digit
  • {2} exactly 2 times
  • ) end of group
Cheat sheet
\d \w \sdigit, word character, whitespace\d{3}-\d{4}
. [abc] [^abc]any character, one of, none of[A-Z][a-z]+
* + ? {n,m}repeat counts (add ? for lazy)a{2,4}?
^ $ \bstart, end, word boundary\bcat\b
(…) (?:…) (?<n>…)capture, non-capture, named group(?<year>\d{4})
(?=…) (?!…) (?<=…) (?<!…)lookahead and lookbehind(?<=\$)\d+
\1 \k<n>repeat a captured group(\w)\1
$1 $<n> $&use in the replacement text$<year>-$1

Uses your browser’s JavaScript regular expressions. Other languages (PCRE, Python, .NET) differ in lookbehind, named groups and flags. Patterns that backtrack heavily on long text can freeze a tab; the text is limited to 200,000 characters.

Esta ferramenta economizou seu tempo? Ajude a manter o Microdeck grátis e atualizado. Opcional · A partir de $3.

Como funciona por dentro

Type a pattern, switch flags on and off and paste test text. Matches are highlighted and listed with their groups.

Passo a passo de uso

1

Type the pattern.

2

Paste test text.

3

Read matches, groups and the explanation.

Principais recursos e vantagens

  • Live highlighting
  • Capture and named groups
  • Replace preview
  • Token explanation
  • Cheat sheet

Metodologia, fórmulas e padrões técnicos

The pattern runs with the JavaScript RegExp engine of your browser, with a limit of 1,000 matches and 200,000 characters.

Exemplos resolvidos e casos especiais

(?<year>\d{4})-(\d{2})

Entrada
Match
Saída
2026-03 with year = 2026

Limitações e notas de precisão

  • • JavaScript syntax only; PCRE, Python and .NET differ.
  • • Heavy backtracking on long text can slow the tab.

Processamento local no navegador e privacidade

Conversores comuns enviam seus documentos, códigos ou vídeos para servidores externos. O Testador de Regex, Depurador e Guia Rápido roda direto na sua aba:

Processado nesta aba

Seus textos e arquivos são processados localmente sem enviar conteúdo para servidores.

Sem registro de conteúdo

O Microdeck não registra nem armazena arquivos ou dados colados nas ferramentas.

Memória temporária da aba

Os resultados ficam apenas na memória do navegador e somem ao fechar ou limpar a aba.

Perguntas frequentes (FAQ)

Why does my pattern work here but not in Python?

Flags, lookbehind support and named group syntax differ between engines.

Is anything uploaded?

No. Everything runs in your browser and your data stays on your device.

Outras ferramentas relacionadas

Apoiar o Microdeck

Totalmente opcional · A partir de $3 · Sem cadastro

Escolha um valor (USD):Selecionado:$5

O valor mínimo é de $3 USD.

100% opcional · A partir de $3 · Checkout seguro no Gumroad.