Probador de expresiones regularesRegex tester
Escribe una expresión regular y un texto: se resaltan las coincidencias y se muestran los grupos, al instante. Sintaxis de JavaScript. Todo en tu navegador. Type a regular expression and some text: matches are highlighted and groups shown, instantly. JavaScript syntax. All in your browser.
Cómo funcionaHow it works
La expresión se evalúa con el motor de JavaScript (el de tu navegador), así que la sintaxis es la de ECMAScript. Los flags cambian el comportamiento: g busca todas las coincidencias, i ignora mayúsculas, m hace que ^ y $ actúen por línea, s hace que . incluya saltos de línea y u activa el modo unicode.
The expression runs with the JavaScript engine (your browser's), so the syntax is ECMAScript. The flags change behaviour: g finds all matches, i ignores case, m makes ^ and $ act per line, s makes . include line breaks and u enables unicode mode.
Nada de lo que escribes sale de tu equipo. ¿Necesitas otra utilidad? Mira el formateador JSON o el codificador Base64. Nothing you type leaves your device. Need another utility? Try the JSON formatter or the Base64 encoder.
Preguntas frecuentesFrequently asked questions
¿Qué sintaxis de regex usa?Which regex syntax does it use?
La de JavaScript (ECMAScript), la misma de los navegadores y Node.js. Admite los flags g, i, m, s, u e y.JavaScript's (ECMAScript), the same as browsers and Node.js. It supports the g, i, m, s, u and y flags.
¿Qué significan los flags g, i, m, s?What do the g, i, m, s flags mean?
g busca todas las coincidencias, i ignora mayúsculas y minúsculas, m hace que ^ y $ funcionen por línea, y s hace que el punto incluya saltos de línea.g finds all matches, i ignores case, m makes ^ and $ work per line, and s makes the dot include line breaks.
¿Se envía el texto a algún servidor?Is the text sent to any server?
No. La expresión y el texto se evalúan en tu navegador. Nada se envía ni se almacena.No. The expression and text run in your browser. Nothing is sent or stored.
¿Puedo ver los grupos capturados?Can I see the captured groups?
Sí. Se muestran los grupos de la primera coincidencia, incluidos los grupos con nombre.Yes. The groups of the first match are shown, including named groups.