اختبار التعابير النمطية

  • g (global)
  • gi (global, ignore case)
  • m (multiline)
  • gim (global, ignore case, multiline)
Results
—
—

يُصرّف اختبار التعابير النمطية تعبيرًا نمطيًا بالأعلام المحددة ويُبلغ بعدد التطابقات التي يجدها في النص التجريبي، ويسرد كل تطابق لتتحقق من نمطك.

صيغة
result = text.match(new RegExp(pattern, flags))

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

ماذا تعني أعلام التعابير النمطية؟
يعثر g على جميع التطابقات بدلاً من الأولى، ويتجاهل i حالة الأحرف، ويسمح m لـ ^ و $ بالمطابقة عند بدايات الأسطر ونهاياتها.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. من نحن MateCalc.

حاسبات ذات صلة