Regex Tester

Test regular expressions live with highlighted matches and groups. Test regular expressions online with live match highlighting, capture-group tables and common flags. Includes a cheat sheet. Free regex playground.

Alat ini berjalan 100% di peramban Anda. Masukan Anda tidak pernah dikirim ke server mana pun — Anda bahkan bisa offline setelah halaman dimuat.

Tentang Regex Tester

Regular expressions are powerful and notoriously fiddly — a single missing escape changes everything. This tester shows matches highlighted inside your sample text as you type, lists every capture group with what it matched, supports the i, g, m and s flags, and reports pattern errors with their positions instead of failing silently. A built-in cheat sheet keeps the meaning of ?, +, * and friends one glance away.

Cara memakai Regex Tester

  1. Enter your regular expression without surrounding slashes.
  2. Toggle the flags you need.
  3. Paste sample text — matches highlight instantly.
  4. Study the group table to refine your pattern.

Fitur utama

Which regex flavour does this tester use?
It runs your browser's native JavaScript engine, so patterns behave exactly as they will in your JavaScript code.
Why does my pattern match nothing in "global" mode?
The g flag returns all matches but changes how lastIndex behaves — if a pattern worked without g and fails with it, an anchored ^/$ combined with the m flag is the usual culprit.

Alat Alat Pengembang terkait

Lebih banyak utilitas dari kategori yang sama.

Lihat semua →