Buscar una herramienta

↑↓ navegar Enter abrir

Busca por tarea si no conoces el nombre exacto.

Regex Tester

Solo local

Regex Tester permite inspeccionar datos directamente en el navegador y explica con claridad el resultado y sus límites. Esta página incluye una entrada y salida real, límites de implementación y fuentes primarias de esta herramienta.

Revisado · Actualizado · Gratis · Sin cuenta

//
Test text0 chars
Match preview0 matches
Matches and capture groups
#MatchIndexCapture groups
No matches yet.
Uses the JavaScript RegExp engine. Tests stop after 300 ms or 1,000 matches.

¿Qué hace Regex Tester?

Regex Tester permite inspeccionar datos directamente en el navegador y explica con claridad el resultado y sus límites. Capacidades verificadas: JavaScript RegExp engine, Capture groups, 300 ms worker timeout, 1,000-match cap.

Test against the deployment engine

Use this page for JavaScript patterns. Verify a PCRE, Python, .NET, Java, database, or proxy pattern in that exact engine before deployment.

¿Cómo se utiliza?

  1. Enter the pattern without surrounding slash characters.
  2. Choose JavaScript flags and paste representative test text.
  3. Inspect highlighted matches, indexes, and capture groups.

Ejemplo real de entrada y salida

Capture a named numeric identifier

Entrada

Pattern: order-(?<id>\d+)
Text: order-1042

Salida

Match: order-1042
Named group id: 1042

The browser exposes the full match and the named capture from the JavaScript RegExp result.

Errores frecuentes y soluciones

SíntomaCausa probableSolución
A valid-looking pattern is rejected.It uses syntax from another regex engine or an unsupported browser flag.Rewrite the expression for the target JavaScript runtime.
Testing times out.The expression backtracks heavily on the supplied text.Make repetitions more specific, reduce ambiguity, or use a parser.

A timeout indicates expensive matching

Límite específico de esta herramienta: Nested quantifiers and ambiguous repeated groups can cause excessive backtracking. A 300 ms timeout protects the page but does not certify production safety.

Estándares y referencias de implementación

Regex Tester — FAQ

Which regex engine is used?

The page uses JavaScript RegExp; PCRE, Python, .NET, and Java can behave differently.

Are capture groups shown?

Yes. Numbered captures and named groups are shown for displayed matches.

What does the timeout mean?

The worker is stopped after 300 ms to reduce page freezes; this is not proof that a pattern is safe.

¿Qué cambió?

Actualización material: Regex Tester: Added JavaScript flag validation, highlighted matches, capture groups, a 1,000-match cap, and 300 ms worker termination for slow patterns.

¿Quién mantiene esta herramienta?

KL
KitLumi EngineeringKitLumi Engineering mantiene el funcionamiento, las pruebas, los ejemplos y la información de privacidad.