Skip to content
Developer

REGEX TESTER

Test regular expressions live with highlighted matches, capture groups, flags and instant error feedback. Presets + cheatsheet included.

Private by design No signup · Free
Flags

g global · i ignore case · m multiline · s dotall · u unicode

Presets
Cheatsheet
Character classes
\d digit · \D non-digit
\w word · \W non-word
\s space · \S non-space
. any char (or +s flag)
[abc] set · [^abc] negate
Quantifiers
* 0+ · + 1+ · ? 0/1
{n} exact · {n,} min · {n,m} range
*? +? lazy versions
Anchors & groups
^ start · $ end · \b boundary
(...) capture · (?:...) non-capture
(?<name>...) named group
a|b alternation · \1 backreference
Flags
g all matches · i ignore case
m ^$ per line · s dot matches newline
u unicode · y sticky (engine only)
Share

Share link encodes pattern + flags + test string in the URL hash.

4 lines
Live Highlight
0
Matches
0
Groups
0ms
Exec time
0
Test chars
Valid pattern — no errors.
Match Groups
#MatchIndexGroups
No matches yet — adjust the pattern or test string.

Frequently Asked Questions

¿Qué es regex?
Patrones para buscar y cambiar texto, como validar un email.
¿Qué hacen los flags?
g (todos), i (sin mayúsculas), m (multilínea) cambian el matching.
¿Cómo veo grupos?
Lo entre paréntesis sale resaltado aparte.
¿Es gratis?
Sí.

How to Use

01

Escribe el patrón

En la caja superior.

02

Pon texto

Ejemplo debajo.

03

Mira matches

Resaltado y grupos.

How to Calculate

El motor corre el patrón sobre el texto.

Sobre esta herramienta

Herramienta en vivo para aprender y depurar expresiones regulares. Con presets de email y URL, chuleta de flags y modo reemplazo. Privada y gratuita.

Related Tools

Methodology & feedback

Figures run locally in your browser from the values you enter (page updated ). Estimates are educational only — verify finance, tax and health decisions with a qualified professional (see Disclaimer). Spotted an error? Report it via contact and we correct with a new update date.

Was this tool helpful?

Buscar herramientas

Empieza a escribir para encontrar herramientas