About This Tool
What is اختبار Regex?
A tool for testing regular expressions with real-time matching against test strings. Used for debugging and developing regex patterns for string searching, validation, and text parsing in development workflows.
How to Use
- Enter your regex pattern in the top input field.
- Enter the test string in the area below.
- Matching portions are highlighted in real-time.
- Configure flags (case insensitive, multiline, etc.) to adjust matching behavior.
Key Features
- Real-time regex matching with highlighting
- Case insensitive, multiline, and dotAll flags
- Detailed match text, position, and capture group display
- ECMAScript, RE2, and PCRE2 engine selection
Tips
- For email validation, use standardized regex patterns rather than simple ones.
- Capture groups () allow you to extract specific matched portions.
- Using the ? quantifier performs lazy (non-greedy) matching instead of the default greedy matching.
اختبار Regex
اختبار التعبيرات النمطية مع مطابقة في الوقت الفعلي
Frequently Asked Questions
الفرق بين .* و .*? ؟▼
الجشع (.*) يلتقط أكثر ما يمكن. الكسول (.*?) يلتقط أقل ما يمكن.
التحقق من البريد بـ regex؟▼
regex البسيط للبريد غير دقيق. للإنتاج، استخدم مكتبات تحقق مخصصة.
الخطوط المائلة في regex؟▼
المحددات /.../ اتفاقية لغوية، ليست جزءاً من regex. أدخل النمط فقط هنا.
Related Tools
مشفر/فاك تشفير
تشفير وفك تشفير النص بصيغ Base64 وBase64URL وBase32 وHex وASCII85
مشفر / فك مشفر URL
ترميز سلاسل URL أو فك ترميزها
محوّل صيغ البيانات
التحويل والتحقق بين صيغ JSON و YAML و TOML و XML و INI و Properties
مولّد التجزئة
توليد تجزئات MD5 و SHA-1 و SHA-256 و SHA-512 من النص
مشفر / فك مشفر JWT
ترميز أو فك ترميز رموز JWT
محوّل حالة الأحرف
تحويل النص بين camelCase و PascalCase و snake_case وغيرها — كل ذلك دفعة واحدة