Erros comuns em regex que quebram padroes reais
Guia pratico sobre greedy, escaping, flags e falsos positivos que costumam fazer uma regex falhar no texto real.
Ler artigoExperimente padroes, flags e texto de teste diretamente no navegador para ver correspondencias rapidamente. Util para debugging, regras de validacao e workflows tecnicos.
Correspondencias
0: Tool 9: para 32: tool 38: data
Regex valida
Sim
Numero de correspondencias
4
Resultado truncado
Nao
Guia
Regex Tester is a free online tool for checking JavaScript regular expressions against real sample text before you use them in code, forms or scripts.
It is useful when you need to validate patterns, inspect matches, test flags and understand why a regex is matching too much, too little or the wrong text.
Use it when a plain contains search is not enough and you need a pattern that can validate, extract or transform text based on rules.
It is especially useful before shipping a regex into production code, because testing against real examples helps expose false positives, missed matches and flag mistakes.
Uso
Paste the sample text, add the regex pattern and choose the flags you want to test.
Run the tester and inspect the matches, groups and overall behavior to make sure the pattern is doing exactly what you expect.
If the result looks wrong, adjust escaping, anchors, quantifiers or flags before copying the regex into your codebase.
FAQ
Sim. Voce pode testar flags como g, i e m diretamente na ferramenta.
Sim. O testador e baseado em expressoes regulares JavaScript.
Aprofundamentos
Guia pratico sobre greedy, escaping, flags e falsos positivos que costumam fazer uma regex falhar no texto real.
Ler artigoGuia pratico sobre a diferenca entre regex e busca simples de texto, e quando usar contains, find ou search no lugar.
Ler artigoGuia pratico sobre expressoes regulares, strings de teste e quando um testador regex e util para debugging, validacao e processamento de texto.
Ler artigo