Testador de regex
Type a regular expression, choose the flags and paste some text. Matches are highlighted as you type, with their positions and capture groups listed, and you can test a replacement using $1 and $2. It uses the JavaScript regex engine.
Funciona no seu navegador. Seus arquivos nunca saem do seu dispositivo.
Flags
Matches
2
| # | Match | Posição | Groups |
|---|---|---|---|
| 1 | [email protected] | 9 | $1=aisha $2=example |
| 2 | [email protected] | 28 | $1=ben $2=test |
Use $1, $2 for groups.
Resultado
Como funciona
- 01Type your pattern and choose the flags.
- 02Paste the text to test.
- 03Check the highlighted matches and the replacement.
Perguntas
Which regex flavor is used?
The JavaScript (ECMAScript) flavor that your browser uses.
Why does my pattern show an error?
The message from the browser tells you what is wrong, such as an unclosed bracket.
Is my file uploaded to a server?
No. Everything happens inside your browser on your own device. Your files are never sent to us or anyone else.
Is it free?
Yes. It is free to use, with no signup, no watermark and no daily limit.