Все инструментыКатегорииО сайтеКонтактыКонфиденциальность
Инструменты разработчика

Regex Tester

Type a pattern, choose flags and paste the text to test. Matches are highlighted in place and listed with their capture groups and offsets. Patterns run in your browser with JavaScript's own engine, so the result matches what your code will do.

Обновлено · Бесплатно · Без регистрации · Работает на вашем устройстве

Загрузка инструмента…

Как пользоваться

  1. Type a pattern and choose flags.
  2. Paste the text to test.
  3. Read the highlighted matches and the capture-group table.

Кому пригодится

Developers writing validation rules, analysts extracting data from logs, and anyone learning regular expressions.

Пример

(\w+)@(\w+\.\w+) matches an email address and captures the local part and the domain separately.

Ограничения

Uses JavaScript's regular-expression engine, which differs from PCRE and Python in some constructs. Matching stops after 2,000 results to keep the page responsive.

Конфиденциальность

What you type or paste is processed in memory in this tab. It is not sent to a server, and nothing is saved after you close the page unless the tool says otherwise.

Частые вопросы

Why is the g flag always on?

The tester needs a global search to highlight every match. Your pattern still works the same way.

Краткие сведения

Категория
Инструменты разработчика
Работает на
Телефон, планшет и компьютер
Аккаунт
Не требуется
Цена
Бесплатно
Данные
Остаются на вашем устройстве
Обновлено