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
Type your regular expression in the pattern field.
Toggle the flags (g, i, m, s, u) you need.
Enter the test string and see matches highlighted with their groups.
Preguntas frecuentes
The JavaScript (ECMAScript) engine built into your browser, so results match what your JavaScript and TypeScript code will do.
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.
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.
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.
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.
No. The pattern and your test text are evaluated entirely in your browser and never leave your device.
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
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, right in your browser.
Convert colors between HEX, RGB and HSL with a live preview.
Convert Unix timestamps to human dates and back — UTC, local, ISO 8601 and relative time. Seconds and milliseconds are auto-detected.
Percent-encode and decode URLs and URL components, UTF-8 safe.
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.