Skip to content

Online regular expression tester

Type a pattern, choose the modifiers and paste the text: you’ll see each match highlighted, along with its position and the captured groups, as you type.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · Regular expression tester

Runs in your browser · 100% local

Ejemplo: \\d{3}-\\d{4} para un teléfono local.

/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi
Coincidencias · 2
Escribe a soporte@bytooly.space o a hola@ejemplo.com.
Los correos inválidos como usuario@ o @dominio.com no deberían coincidir.
#CoincidenciaPosiciónGrupos
1soporte@bytooly.space10—
2hola@ejemplo.com36—
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Write the pattern without the side bars, for example \d{3}-\d{4}.

02

Enable the modifiers you need: g for all matches, i to ignore case, m for multi-line, s to include line breaks, and u for Unicode.

03

Paste the test text and check the list of matches, its index and the captured groups.

Examples

Examples

Retrieve emails

Using the pattern \b[\w.+-]+@[\w.-]+\.[A-Za-z]{2,}\b and the g flag, all addresses in the text are listed.

Validate a date

^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$ accepts 22 October 2026 and rejects 1 March 2026.

Reference guide

What you need to know

The tester uses JavaScript’s regular expression engine, the same one that runs in the browser. This is why the result may differ from Python, PHP or grep in details such as named groups or advanced constructs.

Patterns are compiled locally and the text is not sent to any server. A poorly constructed pattern can consume a lot of CPU time with long inputs: if the page seems to be taking a long time to process, simplify the nested quantifiers and avoid combinations such as (a+)+.

Frequently asked questions

Frequently Asked Questions

No. The pattern and the text are processed in the browser’s memory and disappear when you close the page.

Related tools

Other tools that can help with similar tasks.

More at Web development→
Online regex tester with groups and syntax highlighting · ByTooly