मुख्य सामग्री पर जाएँ
TOP free online tools आपका कार्यक्षेत्र
हिन्दी
संदर्भ अंतिम अद्यतन: 2026-08-27

रेगुलर एक्सप्रेशन चीट शीट

रेगुलर एक्सप्रेशन सिंटैक्स की त्वरित संदर्भ जिसमें अक्षर, क्वांटिफायर, एंकर, समूह और सामान्य पैटर्न शामिल हैं।

Click any cell to copy
47 / 47
syntaxcategorydescription
.CharactersAny character except newline
\dCharactersAny digit (0-9)
\DCharactersAny non-digit
\wCharactersAny word character (a-z, A-Z, 0-9, _)
\WCharactersAny non-word character
\sCharactersAny whitespace (space, tab, newline)
\SCharactersAny non-whitespace
\bCharactersWord boundary
\BCharactersNon-word boundary
[abc]CharactersAny of a, b, or c
[^abc]CharactersNone of a, b, or c
[a-z]CharactersAny lowercase letter
[a-zA-Z]CharactersAny letter
*Quantifiers0 or more occurrences
+Quantifiers1 or more occurrences
?Quantifiers0 or 1 occurrence (optional)
{n}QuantifiersExactly n occurrences
{n,}QuantifiersAt least n occurrences
{n,m}QuantifiersBetween n and m occurrences
^AnchorsStart of string
$AnchorsEnd of string
\AAnchorsStart of string (absolute)
\ZAnchorsEnd of string (absolute)
(...)GroupsCapture group
(?:...)GroupsNon-capturing group
(?=...)GroupsPositive lookahead
(?!...)GroupsNegative lookahead
(?<=...)GroupsPositive lookbehind
(?<!...)GroupsNegative lookbehind
(?P<name>...)GroupsNamed capture group
|AlternationOR —match either side
\EscapingEscape special character
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Common PatternsEmail address
^(https?:\/\/)?[\w.-]+\.[a-zA-Z]{2,}.*$Common PatternsURL
^\d{4}-\d{2}-\d{2}$Common PatternsDate (YYYY-MM-DD)
^\d{3}-\d{3}-\d{4}$Common PatternsUS phone number
^\d{16}$Common PatternsCredit card number (16 digits)
^[A-Z]{2}\d{2}[A-Z0-9]{1,30}$Common PatternsIBAN (simplified)
^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$Common PatternsHex color
^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$Common PatternsIPv4 address
^[a-z0-9-]+$Common PatternsSlug (kebab-case)
iFlagsCase-insensitive matching
gFlagsGlobal matching (find all)
mFlagsMultiline mode (^ and $ match line boundaries)
sFlagsDot matches newline
uFlagsUnicode mode
yFlagsSticky matching

संबंधित टूल

संबंधित गाइड

अक्सर पूछे जाने वाले प्रश्न

What is the difference between greedy and lazy regex quantifiers?
Greedy quantifiers (*, +, ?) match as much as possible, while lazy quantifiers (*?, +?, ??) match as little as possible. For example, in "a.b", the greedy a.*b matches the entire string, while the lazy a.*?b stops at the first b.
How do I match a literal special character in regex?
Special regex characters like ., *, +, ?, ^, $, (, ), [, ], {, }, |, and \ must be escaped with a backslash (\) to match them literally. For example, to match a literal dot, use \. instead of . which matches any character.