Monu Tools

Тестировщик регулярных выражений

Тестируйте регулярные выражения и мгновенно выделяйте совпадения в тестовой строке с поддержкой всех флагов JavaScript.

Как использовать Тестировщик RegEx

  1. 01

    Введите регулярное выражение в поле паттерна.

  2. 02

    Введите тестовую строку.

  3. 03

    Совпадения выделяются мгновенно.

What the regex tester does

The regex tester lets you build and debug regular expressions against your own sample text, with matches highlighted live as you type. 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.

Which engine it uses

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.

Flags and capture groups

Toggle the global, case-insensitive, multiline and other flags to change how a pattern matches. You see every match along with its capture groups, so you can confirm exactly what each part of the pattern is pulling out.

Differences across regex flavors

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. If a pattern works here but not in another language, an engine-specific construct is usually the reason.

Часто задаваемые вопросы

Какой синтаксис регулярных выражений используется?

JavaScript-регулярные выражения. Поддерживаются флаги g (глобальный), i (без учёта регистра), m (многострочный), s (точка соответствует новой строке) и другие.

Почему мои совпадения не работают?

Убедитесь, что установлен флаг g для глобального поиска. Без него найдётся только первое совпадение.

Источники

Встроить этот инструмент

Добавьте этот инструмент на свой сайт. Скопируйте фрагмент ниже, он обновляется автоматически.

<iframe src="https://monu.tools/embed/ru/regex-tester" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

Похожие инструменты