.* Regex Test Aracı Online — Düzenli İfadeleri Test Et

Test regular expressions with live match highlighting. See all matches, capture groups, and positions. Supports g, i, m, s flags. Free online regex tester.

Enter your regex pattern and test string, then see all matches highlighted in real-time. Capture groups are shown with their indices. Toggle flags (global, ignore-case, multiline, dotAll) and see results update instantly. Uses JavaScript's native RegExp engine.

/ /

How to Use

1

Enter a pattern

Type your regular expression in the pattern field. Use the checkboxes to enable flags: g (global), i (ignore case), m (multiline), s (dotAll).

2

Add your test string

Paste or type the string you want to test in the Test String area. All matches are highlighted live as you type.

3

Inspect matches

See the total match count, each match with its position, and any capture groups. Copy the verified pattern to use in your project.

Frequently Asked Questions

What is a regular expression? +
A regular expression (regex) is a sequence of characters that defines a search pattern. They are used to match, find, or replace text in strings. For example, /\d+/ matches one or more digits.
What are regex flags and what do they do? +
Flags modify how a regex works. g (global) finds all matches, not just the first. i (ignore case) makes matching case-insensitive. m (multiline) makes ^ and $ match line boundaries. s (dotAll) makes . match newlines.
What are capture groups? +
Capture groups (...) let you extract specific parts of a match. For example, /(\d{4})-(\d{2})-(\d{2})/ matches a date and captures year, month, and day in separate groups. Named groups use (?<name>...) syntax.
Why does my regex not find all matches? +
Without the g (global) flag, the regex stops after the first match. Enable the g flag to find all occurrences. Also ensure you have not accidentally added anchors (^ or $) that restrict matching.
Is any data sent to a server? +
No. All regex processing runs entirely in your browser using JavaScript's built-in RegExp engine. Your pattern and test string never leave your device.


Tam Rehber: Regex Test Aracı

Düzenli İfade Nedir ve Neden Önemlidir?

Düzenli ifade (regex), bir arama deseni tanımlayan karakter dizisidir. JavaScript, Python, Go, Java ve Rust dahil tüm modern programlama dilleri regex motoruna sahiptir. Form doğrulama, log analizi, kod editörlerinde bul-değiştir, URL yönlendirme kalıpları ve yapılandırılmamış metinden veri çıkarma için vazgeçilmezdir. Doğru yazılmış bir regex, onlarca satır string işleme kodunun yerini alır. Yanlış yazılmışsa sunucuyu donduran yıkıcı geri izlemeye neden olur.

Nasıl Kullanılır?

  1. Deseninizi girin (eğik çizgiler olmadan — araç bunları ekler).
  2. Bayrakları ayarlayın: g (global), i (büyük/küçük harf duyarsız), m (çok satırlı), s (dotAll).
  3. Test dizinizi yapıştırın — tüm eşleşmeler gerçek zamanlı vurgulanır.
  4. Eşleşme listesini inceleyin — başlangıç/bitiş indeksi ve yakalama grubu değerleri.

Kod Örnekleri

// JavaScript: yakalama grupları
const tarihDeseni = /(\d{4})-(\d{2})-(\d{2})/g;
for (const eslesen of '2026-01-15'.matchAll(tarihDeseni)) {
  console.log(`Yıl: ${eslesen[1]}, Ay: ${eslesen[2]}, Gün: ${eslesen[3]}`);
}

// Adlandırılmış gruplar (ES2018+)
const adliTarih = /(?<yil>\d{4})-(?<ay>\d{2})-(?<gun>\d{2})/;
const { yil, ay, gun } = '2026-05-08'.match(adliTarih).groups;

// E-posta doğrulama (pratik)
const emailRx = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/i;

Yaygın Hatalar

İpuçları

🧰 50+ Tools