RT

Regex Tester

Developer Tools · Free · Browser me hi chalta hai

Regex pattern aur test text daalo — matches live highlight honge, count aur capture groups ke saath.

Advertisement
Pattern
Result
Advertisement

How to use — Regex Tester

  1. Regex pattern likho (bina slashes ke) — e.g. \d{10} mobile numbers ke liye.
  2. Flags choose karo — g (sab matches), i (case-insensitive), m (multiline).
  3. Test text paste karo — matches live highlight ho jayenge, groups ke saath.

FAQ

Kaunsa regex flavor use hota hai?

JavaScript (ECMAScript) regex — jo browsers aur Node.js me chalta hai. Python/PCRE se thoda alag hai (e.g. lookbehind support browser pe depend karta hai).

Common patterns kya hain?

Email: [\w.+-]+@[\w-]+\.[\w.]+ | 10-digit mobile: [6-9]\d{9} | PIN code: \d{6} | PAN: [A-Z]{5}\d{4}[A-Z] | Date: \d{2}/\d{2}/\d{4}

g flag kya karta hai?

Global — text me SAARE matches dhoondta hai. Bina g ke sirf pehla match milta hai. Zyada tar cases me g on rakho.

Capture groups kaise dekhte hain?

Pattern me () lagao — e.g. (\d{2})/(\d{2}) me do groups hain. Har match ke neeche groups ki values dikhti hain.

Advertisement