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.
Workspace · Regular expression tester
Ejemplo: \\d{3}-\\d{4} para un teléfono local.
/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/giEscribe a soporte@bytooly.space o a hola@ejemplo.com. Los correos inválidos como usuario@ o @dominio.com no deberían coincidir.
| # | Coincidencia | Posición | Grupos |
|---|---|---|---|
| 1 | soporte@bytooly.space | 10 | — |
| 2 | hola@ejemplo.com | 36 | — |
How to use it
Write the pattern without the side bars, for example \d{3}-\d{4}.
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.
Paste the test text and check the list of matches, its index and the captured groups.
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.
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
Related tools
Other tools that can help with similar tasks.
Regular expression generator
Get ready-to-use patterns for email, URL, telephone number, date, colour or UUID, with explanations.
Text search and replace tool
Find a word or phrase and replace it with another.
JavaScript Validator
Detect syntax errors in your code without running it, with line numbers and helpful warnings.
