Explicador Regex

Explica un regex token por token, revisa los flags y consulta estadísticas estructurales básicas.

Explicador Regex

Introduce un patrón regex y sus flags para ver una explicación token por token.

Ejemplo: `^(?:https?):\/\/[\w.-]+$` con `i`

Resumen

Regex válido
This pattern uses 2 anchors, contains 1 group, contains 1 character class, uses 2 quantifiers, runs with i flag.
Grupos
1
Clases de caracteres
1
Cuantificadores
2
Alternancias
0
Anclas
2

Explicación de flags

icase-insensitive

Explicación de tokens

^
Start anchor

Requires the match to start here.

(?:
Non-capturing group

Groups tokens without storing a capture.

h
Literal

Matches the literal character "h".

t
Literal

Matches the literal character "t".

t
Literal

Matches the literal character "t".

p
Literal

Matches the literal character "p".

s
Literal

Matches the literal character "s".

?
Zero or one

Makes the previous token optional.

)
Group end

Closes the current group.

:
Literal

Matches the literal character ":".

\/
Escaped token

Escapes the next character or token.

\/
Escaped token

Escapes the next character or token.

[\w.-]
Character class

Matches one character from the listed set or range.

+
One or more

Repeats the previous token at least once.

$
End anchor

Requires the match to end here.

¿Qué hace la herramienta?

Divide un regex en piezas más pequeñas y explica qué significa cada token.

¿Qué incluye la v1?

Esta versión es totalmente determinista y ofrece explicaciones instantáneas sin capa de IA.