أدوات المطورين

اختبار Regex

اختبار Regex: جهّز النص البرمجي وراجع الناتج قبل دمجه في مشروعك.

دليل الاستخدام

اختبار Regex: المدخلات والنتائج والحدود

اختبار Regex: جهّز النص البرمجي وراجع الناتج قبل دمجه في مشروعك.

تفاصيل الأمثلة والأسئلة أدناه باللغة الإنجليزية حالياً. راجع تنسيق الملف والنتيجة قبل الاستخدام؛ لا تتغير ملفاتك الأصلية.

خطوات الاستخدام

  1. أدخل النص أو استخدم المثال الموضّح في الأداة.
  2. راجع الخيارات قبل التشغيل: نمط التعبير: \d+ · خيارات التعبير: g
  3. راجع المعاينة أو النص الناتج ثم نزّل ملفاً جديداً.

حالة استخدام توضيحية

All digit runs matched in Order 123 and 456.

Sample input

Order 123 and 456

طريقة فحص الناتج

Use the global flag when all matches are needed. Check escaped backslashes and test a realistic input length. Pathological expressions may be stopped by the worker timeout.

حدود الأداة

جهّز النص البرمجي وراجع الناتج قبل دمجه في مشروعك.

الإعدادات والقيم الابتدائية

الإعدادالقيمة الابتدائية
نمط التعبير\d+
خيارات التعبيرg

حل المشكلات

Check source syntax and distinguish literal characters from their escaped representation. Run the example first, then compare with your failing input to isolate the invalid part.

الأسئلة الشائعة

Why did my regex time out?

Some expressions take excessive time on particular inputs. Simplify nested repetition and test shorter text rather than repeatedly running a stalled pattern.

What input does Regex tester need?

Use the sample text shown below, then replace it with your own input. Runs in a bounded worker; long-running expressions time out.

Which options does Regex tester provide?

Regex pattern, Regex flags. Review the starting values in the table and adjust them for your input.

المعالجة على جهازك؛ نسّق النص النهائي وراجع الناتج قبل المشاركة.

JavaScript enables the interactive workspace.

تنسيق JSON

ترميز Base64

ترميز URL

ترميز HTML

تنظيف تعليقات CSS

تصغير JavaScript

تنظيف تعليقات HTML

تحويل الألوان

تحويل الوقت