Monu Tools

Regex Tester

Test a regular expression against your text in real time. See every match highlighted, with capture groups and flags. Runs entirely in your browser.

Cómo usar Regex Tester

  1. 01

    Type your regular expression in the pattern field.

  2. 02

    Toggle the flags (g, i, m, s, u) you need.

  3. 03

    Enter the test string and see matches highlighted with their groups.

Preguntas frecuentes

Which regex flavour is used?

The JavaScript (ECMAScript) engine built into your browser, so results match what your JavaScript and TypeScript code will do.

What do the flags mean?

g matches all occurrences, i ignores case, m makes ^ and $ match at line breaks, s lets the dot match newlines, and u enables full Unicode handling.

How do I match across multiple lines?

Enable the multiline (m) flag so ^ and $ match at each line break, and add the dotAll (s) flag if you also need the dot to match newline characters.

Are capture groups shown?

Yes. Each match lists its numbered capture groups, and named groups appear by name, so you can see exactly what each part of the pattern captured.

Why does my pattern work here but not in another language?

This uses the JavaScript engine. PCRE, Python and others share most syntax but differ in lookbehind, named groups and some escapes, so port advanced patterns with care.

Is my text uploaded?

No. The pattern and your test text are evaluated entirely in your browser and never leave your device.

Acerca de esta herramienta

The regex tester lets you build and debug regular expressions against your own sample text, with matches highlighted live as you type. It uses the JavaScript regular-expression engine, the same one in every browser and in Node.js, so a pattern that works here works in your JavaScript and TypeScript code.

Toggle the global, case-insensitive, multiline and other flags, and see every match along with its capture groups. It is useful for validating input formats, extracting fields from logs, or testing a pattern before pasting it into code. Everything runs in your browser, so your patterns and test text are never uploaded. Note that other languages such as PCRE, Python and Go share most syntax but differ in some features, so a few advanced constructs may behave differently outside JavaScript.

Herramientas relacionadas

Usamos cookies esenciales para que el sitio funcione. Con tu consentimiento también cargamos Google AdSense, que establece cookies publicitarias. Consulta nuestra política de privacidad.