Microdeck.tools 100 % en el navegador

Probador de Regex, Depurador y Hoja de Trucos

New

Prueba expresiones regulares de JavaScript con resaltado en vivo, grupos de captura, vista previa de reemplazo y explicación de tokens.

100 % en tu navegador Sin subir archivos Resultados al instante
//g

Matches highlighted · 2 found

Order 2026-03-14: 3 items, total $45.50
Order 2026-04-02: 1 item, total $9.99
Contact: sales@example.com, support@example.org
#MatchPositionGroups
12026-03-146–16$1 = "2026" · $2 = "03" · $3 = "14" · year = "2026"
22026-04-0246–56$1 = "2026" · $2 = "04" · $3 = "02" · year = "2026"
Order 2026/03/14: 3 items, total $45.50
Order 2026/04/02: 1 item, total $9.99
Contact: sales@example.com, support@example.org

What the pattern means

  • (?<year> start of the capture group named year
  • \d a digit
  • {4} exactly 4 times
  • ) end of group
  • - the character -
  • ( start of a capture group
  • \d a digit
  • {2} exactly 2 times
  • ) end of group
  • - the character -
  • ( start of a capture group
  • \d a digit
  • {2} exactly 2 times
  • ) end of group
Cheat sheet
\d \w \sdigit, word character, whitespace\d{3}-\d{4}
. [abc] [^abc]any character, one of, none of[A-Z][a-z]+
* + ? {n,m}repeat counts (add ? for lazy)a{2,4}?
^ $ \bstart, end, word boundary\bcat\b
(…) (?:…) (?<n>…)capture, non-capture, named group(?<year>\d{4})
(?=…) (?!…) (?<=…) (?<!…)lookahead and lookbehind(?<=\$)\d+
\1 \k<n>repeat a captured group(\w)\1
$1 $<n> $&use in the replacement text$<year>-$1

Uses your browser’s JavaScript regular expressions. Other languages (PCRE, Python, .NET) differ in lookbehind, named groups and flags. Patterns that backtrack heavily on long text can freeze a tab; the text is limited to 200,000 characters.

¿Te ahorró tiempo esta herramienta? Ayuda a mantener Microdeck gratis y al día. Opcional · Desde $3.

Cómo funciona por dentro

Type a pattern, switch flags on and off and paste test text. Matches are highlighted and listed with their groups.

Instrucciones paso a paso

1

Type the pattern.

2

Paste test text.

3

Read matches, groups and the explanation.

Funciones principales y ventajas

  • Live highlighting
  • Capture and named groups
  • Replace preview
  • Token explanation
  • Cheat sheet

Metodología, fórmulas y estándares técnicos

The pattern runs with the JavaScript RegExp engine of your browser, with a limit of 1,000 matches and 200,000 characters.

Ejemplos prácticos y casos límite

(?<year>\d{4})-(\d{2})

Entrada
Match
Salida
2026-03 with year = 2026

Límites y notas de precisión

  • • JavaScript syntax only; PCRE, Python and .NET differ.
  • • Heavy backtracking on long text can slow the tab.

Procesamiento local en tu navegador y privacidad

Los conversores tradicionales suben tus documentos, textos o archivos multimedia a servidores remotos. Probador de Regex, Depurador y Hoja de Trucos se ejecuta dentro de tu pestaña:

Procesado en esta pestaña

Tus textos y archivos se procesan localmente sin enviarse a ningún servidor externo.

Sin registro de tus archivos

Microdeck no guarda ni registra el contenido que introduces en las herramientas.

Memoria temporal de la pestaña

Los resultados permanecen en la memoria de tu navegador y se liberan al cerrar o reiniciar.

Preguntas frecuentes (FAQ)

Why does my pattern work here but not in Python?

Flags, lookbehind support and named group syntax differ between engines.

Is anything uploaded?

No. Everything runs in your browser and your data stays on your device.

Explora herramientas relacionadas

Apoyar a Microdeck

Totalmente opcional · Desde $3 · Sin cuenta

Elige un importe (USD):Seleccionado:$5

El aporte mínimo es de $3 USD.

Totalmente opcional · Desde $3 · Pago seguro en Gumroad.