Skip to content

Regex जनरेटर और व्याख्याकार

उदाहरण स्ट्रिंग से रेगुलर एक्सप्रेशन बनाएँ और किसी भी regex को हिस्सा-दर-हिस्सा आसान भाषा में समझें। नियम-आधारित, ब्राउज़र में।

कोई अपलोड नहीं
  • ✓ Generalised from your examples · matches 3/3, rejects 2/2

    ^\d{4}-\d{2}-\d{2}$
  • ✓ ISO date (YYYY-MM-DD) · matches 3/3, rejects 2/2

    ^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$
  • ✓ Exact alternatives · matches 3/3, rejects 2/2

    ^(?:2024-01-15|1999-12-31|2026-10-14)$

Regex जनरेटर और व्याख्याकार कैसे इस्तेमाल करें

  1. 1Regex जनरेटर और व्याख्याकार खोलें। यह आपके ब्राउज़र में चलता है, साइन-अप की ज़रूरत नहीं।
  2. 2अपना इनपुट टाइप या पेस्ट करें।
  3. 3नतीजा कॉपी या डाउनलोड करें।

सवाल

How is the regex generated?

Your examples are split into runs of digits, letters and punctuation. If they share a structure, those runs become character classes with lengths; common formats like emails, dates and UUIDs are also checked against your examples.

Is AI involved?

No. It is rule-based and runs entirely in your browser.

Which regex flavour?

JavaScript (ECMAScript). Most patterns also work in PCRE, Python and Go.

और टूल