डेवलपर टूल

रेगुलर एक्सप्रेशन परीक्षण

रेगुलर एक्सप्रेशन परीक्षण — इस मुफ़्त टूल से अपने ब्राउज़र में काम पूरा करें। पंजीकरण की ज़रूरत नहीं है।

रेगुलर एक्सप्रेशन परीक्षण

UtilBrix द्वारा संचालित

JavaScript regular expressions. Processing runs in a worker and stops after 3 seconds. Quick reference: \d digit, \w word, \s whitespace, + one or more, * zero or more, ^ start, $ end.

आपकी जानकारी आपके ब्राउज़र में ही रहती है। फ़ाइलें हमारे सर्वर पर अपलोड नहीं होतीं।

नीचे विस्तृत विधि और उदाहरण अंग्रेज़ी में उपलब्ध हैं।

Step-by-step instructions (English)

  1. Enter a JavaScript regular-expression pattern and the desired flags.
  2. Paste representative test text, including examples that should not match.
  3. Optionally enter a replacement string, then inspect matches, groups, indexes, and replacement output.

सूत्र और विधि

The browser executes JavaScript RegExp semantics in a dedicated worker. Match details include text, zero-based UTF-16 indexes, captured groups, and named groups. The replacement string follows JavaScript replacement conventions, including $1 and named references.

एक उपयोगी उदाहरण

The pattern \d+ with flag g finds 12 and 34 in order 12, item 34. A worker timeout stops patterns that take too long.

When this tool is useful

Develop a pattern for text extraction or cleanup before adding it to an application. Testing both matching and nonmatching examples helps catch a pattern that works on one sample but accepts too much.

Common mistakes and limitations

  • Regular-expression syntax and flags differ between languages; this tool uses JavaScript semantics.
  • A pattern can be expensive on long input. The worker time limit protects the page, but a timeout means the pattern needs review.

Practical questions about this tool (English)

Why am I seeing only one match?

Check the global g flag if you intend to find repeated matches. Other flags such as i and m affect case sensitivity and line boundaries rather than enabling all matches.

What do match indexes count?

Indexes are zero-based UTF-16 positions, matching JavaScript string indexing. Some visible symbols occupy multiple code units, so the index can differ from a visual character count.

संबंधित टूल

UtilBrix इंस्टॉल करें

अपने टूल होम स्क्रीन से एक टैप में खोलें।

  1. अपने ब्राउज़र का मेन्यू (⋮) खोलें।
  2. “ऐप इंस्टॉल करें” या “होम स्क्रीन पर जोड़ें” चुनें।
  3. UtilBrix को होम स्क्रीन पर जोड़ने की पुष्टि करें।

इंस्टॉल का विकल्प न दिखे तो Android पर यह पेज Chrome में खोलें।

टूल खोजें

↑ ↓ Navigate · Enter Open · Esc Close