Tiny Online Tools logoTiny Online Toolssearchابحث في الادوات…grid_viewكل الادوات
الرئيسيةchevron_rightادوات المطورينchevron_rightRegex مولّدRegex مولّد

Regex مولّد

Browse a library of common Regex patterns مع token explanations.

Email & Web
Numbers & IDs
Network
Dates & Times
Phone Numbers
Passwords & Users
Postal & Geographic
Code & Data
Email Address

Standard email address format

^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$
[email protected]
Paste any Regex إلى get a token-by-token breakdown below.Token breakdown
^Start of string
[a-zA-Z0-9._%+\-]Any of: a-zA-Z0-9._%+\-
+One or more (greedy)
@Literal character: "@"
[a-zA-Z0-9.\-]Any of: a-zA-Z0-9.\-
+One or more (greedy)
\.Literal dot
[a-zA-Z]Any of: a-zA-Z
{2,}At least 2 times
$End of string
infoHover over any chip to see the full label. Groups are shown as a single chip.

ادوات مشابهة

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

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

اختبر التعبيرات النمطية مع تمييز فوري للتطابقات ووضع الاستبدال.

اداة استبدال Regex

اداة استبدال Regex

استخدم التعابير النمطية لاستبدال النصوص محليا داخل المتصفح.

اداة تقسيم Regex

اداة تقسيم Regex

استخدم التعابير النمطية لتقسيم النص محليا داخل المتصفح.

مستخرج Regex

مستخرج Regex

استخدم التعابير النمطية لاستخراج المطابقات من النص محليا داخل المتصفح.

تدوير PDF

تدوير PDF

دوّر صفحات PDF لإصلاح اتجاهها.

TSV to CSV

TSV to CSV

Convert tab-separated text into CSV format.

تحويل النص الى kebab-case

تحويل النص الى kebab-case

حول النص الى تنسيق kebab-case مناسب للروابط.

apps

المزيد من الادوات

تصفح مجموعتنا الكاملة من الادوات المجانية عبر الانترنت.

Learn & Use Regex Patterns from a Curated Library

Regex is powerful but intimidating. A pattern like (?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*)@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?) looks like gibberish until you understand each token. This Regex Generator combines a library of proven patterns with an interactive explainer, so you learn how patterns work while solving real problems.

Search for a pattern you need (email, phone, date, URL, etc.), see working examples, understand what each part does, and copy the pattern to your code. Or paste your own regex to get a token-by-token explanation.

Curated Pattern Library

The tool includes common regex patterns for:

  • Email Addresses: RFC-compliant email validation
  • URLs & Web Addresses: HTTP/HTTPS URLs with various domains
  • Phone Numbers: US, international تنسيقs
  • Dates & Times: ISO, US تنسيق, timestamps
  • IP Addresses: IPv4 and IPv6
  • Passwords & Security: Password strength requirements
  • Usernames: Valid username تنسيقs
  • Credit Cards: Basic تنسيق validation
  • Postal Codes: ZIP codes, international تنسيقs
  • Hex Colors: CSS color codes

Patterns are battle-tested—they're not perfect (email validation via regex is famously imperfect), but they're practical and work for most حالات الاستخدام.

Token-by-Token Explanations

Select any pattern and see a breakdown of each token:

  • ^ anchors the start
  • [a-z]+ matches one or more lowercase letters
  • \\d matches a digit
  • * means zero or more
  • (group) captures matched content
  • {n,m} quantifier: match between n and m times
  • And so on

Each token displays its plain-English meaning, helping you understand how the pattern works and how to modify it for your needs.

Explain Your Own Patterns

Paste any regex into the "custom pattern" box and get an instant explanation. This is invaluable for:

  • Understanding regex you found online
  • Debugging patterns that don't work as expected
  • Learning how other developers wrote patterns
  • Verifying your regex does what you think it does

Copy Patterns Instantly

Find a pattern you need? Copy it with one click and paste directly into your code.

Common Developer حالات الاستخدام

Form Validation: Find email, phone, or password regex patterns to use in form validation. Copy and paste into your HTML5 input pattern attributes or JavaScript validation code.

Input Validation: التحقق user input matches expected تنسيق before processing. Email, username, postal code—find the pattern and التحقق against it.

Data Extraction: Use regex patterns to extract specific data from strings. Find a phone number regex, use it to extract phone numbers from text blocks.

Search & Filter: Write regex to search large datasets for records matching a pattern. Find items with valid email addresses, IP addresses, or specific تنسيقs.

Learning Regex: New to regex? Browse patterns, understand tokens, and gradually build your regex skills.

Debugging Failed Validations: Your regex doesn't match valid input? Paste it here to see the token breakdown and spot the problem.

Regex Portability: Some languages have slightly different regex syntax. The library focuses on JavaScript/PCRE-compatible patterns that work in most languages.

Search the Library

Quickly find what you need by searching the library. Type "email," "date," "phone," or similar to filter patterns.

Work Offline

The pattern library and explanations load entirely in your المتصفح. Work offline without internet access once loaded.

Perfect Starting Point

Rather than writing regex from scratch, start with a proven pattern and customize it. This saves time and reduces bugs from untested regex.