Microdeck.tools 100% di Browser

Penguji Regex, Debugger & Lembar Contekan

New

Uji regex JavaScript dengan penyorotan kecocokan langsung, grup tangkapan, pratinjau penggantian, dan penjelasan token.

100% di Browser Tanpa Upload Server Hasil Instan
//g

Matches highlighted · 2 found

Order 2026-03-14: 3 items, total $45.50
Order 2026-04-02: 1 item, total $9.99
Contact: sales@example.com, support@example.org
#MatchPositionGroups
12026-03-146–16$1 = "2026" · $2 = "03" · $3 = "14" · year = "2026"
22026-04-0246–56$1 = "2026" · $2 = "04" · $3 = "02" · year = "2026"
Order 2026/03/14: 3 items, total $45.50
Order 2026/04/02: 1 item, total $9.99
Contact: sales@example.com, support@example.org

What the pattern means

  • (?<year> start of the capture group named year
  • \d a digit
  • {4} exactly 4 times
  • ) end of group
  • - the character -
  • ( start of a capture group
  • \d a digit
  • {2} exactly 2 times
  • ) end of group
  • - the character -
  • ( start of a capture group
  • \d a digit
  • {2} exactly 2 times
  • ) end of group
Cheat sheet
\d \w \sdigit, word character, whitespace\d{3}-\d{4}
. [abc] [^abc]any character, one of, none of[A-Z][a-z]+
* + ? {n,m}repeat counts (add ? for lazy)a{2,4}?
^ $ \bstart, end, word boundary\bcat\b
(…) (?:…) (?<n>…)capture, non-capture, named group(?<year>\d{4})
(?=…) (?!…) (?<=…) (?<!…)lookahead and lookbehind(?<=\$)\d+
\1 \k<n>repeat a captured group(\w)\1
$1 $<n> $&use in the replacement text$<year>-$1

Uses your browser’s JavaScript regular expressions. Other languages (PCRE, Python, .NET) differ in lookbehind, named groups and flags. Patterns that backtrack heavily on long text can freeze a tab; the text is limited to 200,000 characters.

Apakah alat ini menghemat waktu Anda? Bantu jaga Microdeck tetap gratis dan terawat. Sepenuhnya sukarela · Mulai $3.

Cara Kerja di Balik Layar

Type a pattern, switch flags on and off and paste test text. Matches are highlighted and listed with their groups.

Panduan Langkah demi Langkah

1

Type the pattern.

2

Paste test text.

3

Read matches, groups and the explanation.

Fitur Utama & Performa

  • Live highlighting
  • Capture and named groups
  • Replace preview
  • Token explanation
  • Cheat sheet

Metodologi, Rumus & Standar Teknis

The pattern runs with the JavaScript RegExp engine of your browser, with a limit of 1,000 matches and 200,000 characters.

Contoh Kasus & Uji Coba

(?<year>\d{4})-(\d{2})

Input
Match
Output
2026-03 with year = 2026

Catatan Batasan & Akurasi

  • • JavaScript syntax only; PCRE, Python and .NET differ.
  • • Heavy backtracking on long text can slow the tab.

Pemrosesan Lokal di Browser & Privasi

Konverter web konvensional mengunggah dokumen, teks, atau media ke server jarak jauh. Penguji Regex, Debugger & Lembar Contekan berjalan langsung di tab browser Anda:

Diproses di Tab Ini

Teks dan file Anda diproses secara lokal tanpa mengirim muatan apa pun ke server.

Tanpa Pencatatan Input

Microdeck tidak mencatat atau menyimpan file dan teks yang Anda masukkan ke ruang kerja alat.

Memori Tab Sementara

Hasil kerja hanya tersimpan di memori tab dan langsung terhapus saat Anda me-reset atau menutup tab.

Pertanyaan yang Sering Diajukan (FAQ)

Why does my pattern work here but not in Python?

Flags, lookbehind support and named group syntax differ between engines.

Is anything uploaded?

No. Everything runs in your browser and your data stays on your device.

Jelajahi Alat Mikro Terkait

Dukung Microdeck

Sepenuhnya sukarela · Mulai $3 · Tanpa akun

Pilih jumlah (USD):Dipilih:$5

Jumlah dukungan minimum adalah $3 USD.

Sepenuhnya sukarela · Mulai $3 · Pembayaran aman melalui Gumroad.