regular characterdescribe
\Marks the next character as a special character, or a literal character, or a backward reference, or an octal escape character. For example, “N" match character "N". n" Matches a newline character. Serial "\\"Match."\" and " (“Then match”(".
^ Matches the starting position of the input string. If the Multiline property of the RegExp object is set, ^ also matches “ n“Or” r" after that.
$ Matches the end position of the input string. $also matches if the Multiline property of the RegExp object is set “ n“Or” r" previous location.
*Matches the preceding subexpression zero or more times. For example, zo * can match “Z" and "zoo". * Equivalent to {0,}.
+Matches the preceding subexpression one or more times. For example,“zo+“Can match”zo" and "zoo“But they don't match.”Z".+ is equivalent to {1,}.
?Matches the preceding subexpression zero or once. For example,“do(es)?“Can match”does“Or”does“In”do".? Equivalent to {0,1}.
{N}N Is a non-negative integer. Match determined Nটাইমস। উদাহরণ হিসাবে, "o{2}" Can't match "Bob“In”o" but can match "Food"two o."
{N,}N Is a non-negative integer. Matches at least Nটাইমস। উদাহরণ হিসাবে, "o{2,}" can't match "Bob“In”o" but can match "foooood"সব ও অন্তর্ভুক্ত হবে"O {1,}"একই অর্থে"O +".O {0,}"Is equivalent to"O *".
{N,m}mandNউভয়ই নন-নেগেটিভ ইন্টিগার, যেখানেN< =mসবচেয়ে কম মাটচNদ্বিতীয়ত এবং সবচেয়ে বেশি মাটচmটাইমস। উদাহরণ হিসাবে, "O {1,3}"মাটচ করবে"FOOOOD". প্রথম তিনটি o এর মধ্যে"O {0,} 1}"একই অর্থে"O?". প্রতিবেদন করুন যে, কমা এবং দুইটি সংখ্যার মধ্যে কোন স্পেস থাকবে না"
?যখন কোন অন্য প্রতিবন্ধক চরণ পরে চরণ তা অন্তর্ভুক্ত হয়*,+,?،{N,}, {N,}, {N,m}) পরে, মাটচ প্যাটার্ন নন-গ্রিডি। নন-গ্রিডি প্যাটার্ন যত কম স্ট্রিংকে মাটচ করে তত ভালো, যখন ডিফল্ট গ্রিডি প্যাটার্ন যত বেশি স্ট্রিংকে মাটচ করে তত ভালো। উদাহরণ হিসাবে, স্ট্রিং "Oooo",O +?"একমাত্র মাটচ করবে"o"এবং"O +"সবকটাই মাটচ করবে"o".
.মাটচ না করা "\Nযে কোন একক চরণ, ". অন্তর্ভুক্ত করতে মাটচ করুন"\N"যে কোন চরণ অন্তর্ভুক্ত করা, কোনও না ব্যবহার করে প্রয়োগ করুন"(. | n)"মডেল.
(প্যাটার্ন)প্যাটার্নকে মাটচ করে এবং মাটচকে ফেচ করে। পাওয়া মাটচকে, ভিবিসক্রিপ্টের SubMatches কলেকশন ব্যবহার করে এবং 0 ডলার... 9 ডলার অ্যাট্রিবিউট ইন জাস্ক্রিপ্ট। প্যারেনথেসিস চরণকে মাটচ করতে, " (“Or”)".
(?: প্যাটার্ন)প্যাটার্নকে মাটচ করে, কিন্তু মাটচ ফলাফলকে ফেচ করে না, অর্থাৎ, এটি একটি নন-মাটচ ফেচ করা এবং পরবর্তীতে সংরক্ষণ করা না হয়। এটি ব্যবহৃত হয় অথবা চরণ "(|)"প্যাটার্নের অংশগুলোকে মিলিয়ে ফেলা সুবিধা আছে। উদাহরণ হিসাবে"ইন্ডাস্ট্রি (?: ই | য়েস)"শুধুমাত্র তুলনা"ইন্ডাস্ট্রিজ | ইন্ডাস্ট্রিজ"একটি আরও সংক্ষিপ্ত অভিব্যক্তি。
(? = প্যাটার্ন)পজিটিভ প্রিসার্চ প্যাটার্নের শুরুতে মাটচ করা কোন স্ট্রিংয়ের শুরুতে লুকআপ স্ট্রিংকে মাটচ করে। এটি একটি নন-মাটচ ফেচ করা, অর্থাৎ, মাটচটি পরবর্তীতে ব্যবহারের জন্য ফেচ করা না হয়। উদাহরণ হিসাবে, "উইন্ডোজ (? 95 | 98 | NT | 2000)“Can match”Windows 2000“In”Windows“But they don't match.”Windows 3.1“In”Windows“”. Pre-সার্চ অলিয়াড চরণগুলো ব্যবহার করে না, অর্থাৎ, মাটচ হওয়ার পর, পরবর্তী মাটচের সার্চ শুরু হয় সর্বশেষ মাটচের পরে, না তার চরণ সমাপ্ত হওয়ার পর-সার্চ.
(?! প্যাটার্ন)ফরোয়ার্ড নেগেটিভ লুকআপ, যা প্যাটার্নের সাথে মাটচ না করা কোন স্ট্রিংয়ের শুরুতে লুকআপ স্ট্রিংকে মাটচ করে। এটি একটি নন-fetch match, that is, the match does not need to be fetched for later use. For example “”Windows (?! 95 | 98 | NT | 2000)“Can match”Windows 3.1“In”Windows“But they don't match.”Windows 2000“In”Windows“”. Pre-search does not consume characters, that is, after a match occurs, the search for the next match starts immediately after the last match, rather than starting after the character containing the pre-search
(? < = pattern)A reverse positive precheck is analogous to a forward positive precheck, but in the opposite direction. For example, “”(? < = 95 | 98 | NT | 2000) Windows“Can match”2000Windows“In”Windows“But they don't match.”3.1 Windows“In”Windows".
(? <! pattern)A reverse negative precheck is analogous to a forward negative precheck, but in the opposite direction. For example “”(? <! 95 | 98 | NT | 2000) Windows“Can match”3.1 Windows“In”Windows“But they don't match.”2000Windows“In”Windows".
X | yMatches x or y. For example, “”Z | food“Can match”Z“Or”Food".(Z | f) ood“Then match”Zood“Or”Food".
[Xyz]Character set. Matches any character contained. For example, “”[Abc]“Can match”plain“In”A".
[^ xyz]Set of negative characters. Matches any character not contained. For example, “”[^ abc]“Can match”plain“In”p".
[A-z]Character range. Matches any character within the specified range. For example, “”[A-z]“Can match”A“To.”Z“Any lowercase alphabetic character in the range.”
[^ a-z]Negative character range. Matches any character that is not within the specified range. For example, “”[^ a-z]“Can match anything that is not there”A“To.”Z“Any character in the range.”
BA word boundary matches, which refers to the position between the word and the space. For example, “”Er b“Can match”কখনো নয়“In”“But they don't match.”Verb“In”".
Bnon-word boundaries. “”Er B“Can match”Verb“In”“But they don't match.”কখনো নয়“In”".
Cxx-র নির্দিষ্ট কন্ট্রোল চরিত্র ম্যাচ করে। উদাহরণস্বরূপ, cM-এর সমতুল্য কন্ট্রোল-M বা কারেজ রিটার্ন। x-এর মান A-র মধ্যে থাকা উচিত-Z বা a-z-এর সময়, c-কে লিটারাল চরিত্র হিসাবে ব্যবহার করা হবেসিচরিত্র
Dনম্বর চরিত্র ম্যাচ করে। [0-9] এর সমতুল্য-9].
Dঅন্যান্য-নম্বর চরিত্র। [^ 0-9] এর সমতুল্য-9].
Fপেজ ফিড চরিত্র ম্যাচ করে। x0c এবং cL-এর সমতুল্য
nনতুন লাইন চরিত্র ম্যাচ করে। x0a এবং cJ-এর সমতুল্য
rকারেজ রিটার্ন ম্যাচ করে। x0d এবং cM-এর সমতুল্য
sMatches any whitespace character, including spaces, tabs, page feeds, etc. Equivalent to [ f n r t v].
SMatches any non-whitespace character. Equivalent to [^ f n r t v].
tMatches a tab. Equivalent to x09 and cI.
VMatches a vertical tab. Equivalent to x0b and cK.
WMatches any word character including an underscore. Equivalent to "[A-Za-z0- 9_]".
WMatches any non-word character. Equivalent to "[^ A-Za-z0- 9_]".
XNmatchN, in whichNEscape the value for hexadecimal. the hexadecimal escape value must be a determined two-digit length. For example, " X41"Match."A". X041"Is equivalent to" X04 & 1". ASCII encoding can be used in regular expressions..
\NummatchNum, in whichNumIs a positive integer. A reference to the match obtained. For example, "(.) 1"Matches two consecutive identical characters."
\NIdentifies an octal escaped value or a backward reference. If\NBefore at leastNAn acquired subexpression, thenNFor backwards reference. Otherwise, ifNIs an octal number (0-7), thenNIs an octal escape value.
\nmIdentifies an octal escaped value or a backward reference. If\nmAt least beforenmTo obtain a subexpression, thennmIs a backward reference. If\nmAt least beforeNAcquire, thenNFor a follow textmIf none of the previous conditions are satisfied, ifNandmBoth are octal digits (0-7), then\nmWill match octal escape valuesnm.
\nmlIFNIs an octal number (0-3), andM and lBoth are octal digits (0-7), then match the octal escape valuenmL.
uNmatchN, in whichNIs a Unicode character represented by four hexadecimal digits. For example, © matches the copyright symbol (©).
user name/^ [a - z0 - 9_ -] {3,16} $/
password/^ [a - z0 - 9_ -] {6,18} $/
Password 2(? = ^. {8 ,}$)(?=.* d )(?=.* W +)(?=.*[ A - Z ])(?=.*[ a - z ])(?!.* n). * $ (Consists of numbers/uppercase letters/lowercase letters/punctuation marks, all four must be available, more than 8 ডিজিট
hexadecimal value/^ #? ([a-f0-9] {6} | [a-f0-9] {3}) $/
E-mail address/^ ([a - z0 - 9 _.-]+)@([ da - z .-]+).([ a - z.] {2,6}) $/
/^ [a-z d] + (. [a-z d ]+)*@([ d a-z] (- [ d a-z })?)+(.{ 1,2} [a-z] +) + $/বাW +([-+.] w +) * @ w +([-.] w +) *. w +([-.] w +) *
URL/^ (https ?://)?([ da - z .-]+).([ a - z.] {2,6 })([/ w .-]*)*/?$/ বা [A - zA - z ]+://[^ s] *
IP address/((2 [0-4d | 25 [0-5] | [01? d d?) .) {3}2 [0-4d | 25 [0-5] | [01]? d d?)/
/^((?: 25 [0-5] | 2 [0-4] [0-9] | [01? [0-9] [0-9 ).){ 3}) 25 [0-5] | 2 [0-4] [0-9] | [01? [0-9] [0-9?) $/বা ((2 [0-4d | 25 [0-5] | [01? d d?) .) {3}2 [0-4d | 25 [0-5] | [01]? d d?)
HTML ট্যাগ/^ < ([a - z ]+)([^<]+)*(?:>(.*)</ 1 > | s +/>)$/ বা<(.*)(.*)>.*</ 1 >|<(.*) />
কোডসমূহ কমেন্টস অপসারণ(? <! http: | S)//. * $
ডবল ম্যাচ-বাইট অক্ষর (চীনা অক্ষর সহ)[^ x00- xff]
Kanji (character)[One -]
ইউনিকোড এনকোডিংয়ের চীনা অক্ষরের পরিমাণ/^ [-] + $/
চীনা এবং পূর্ণ-প্রস্থ পুনঃচিহ্ন (অক্ষর)[- -: -, -! - 🥰]
তারিখ (বছর-মাস-দিন)( d {4}) | d {2) - ((0? ([1-9)) | (1 [1 | 2)) - ((0? [1-9]) | ([12] ([1-9)) | (3 [0 | 1))
তারিখ (মাস/দিন/বছর)((0? [1-9] {1}) | (1 [1 | 2))/(0? [1-9] | ([12] [1-9)) | (3 [0 | 1))/( d {4}) | d {2)
সময় (ঘণ্টা: মিনিট, 24-ঘন্টা ঘড়ি)((1 | 0?) [0-9] | 2 [0-3])): ([0-5] [0-9])
চীনা মহাদেশের স্থায়ী ফোন নম্বর( d {4} - | d {3} -)? ( d {8}) | d {7)
চীনা মহাদেশের মোবাইল ফোন নম্বর1 d {10}
চীনা মহাদেশের পোস্টাল কোড[1-9] d {5}
চীনা মহাদেশের আইডি নম্বর (15 বা 18 ডিজিট D {15} ( d d [0-9xX])?
Non-নেগেটিভ ইন্টিজার (পজিটিভ ইন্টিজার বা শূন্য) D +
পজিটিভ ইন্টিজার[0-9] * [1-9] [0-9] *
নেগেটিভ ইন্টিজার- [0-9] * [1-9] [0-9] *
ইন্টিজার-? d +
ডিজিটাল(-? d +) (. d +)?
খালি লাইন N s * r বা n n (editplus) বা ^ [ s S] * n
QQ নম্বর[1-9] d {4,}
অ্যাবস অ্যার কনটেনট এবং abcB ((?! abc) w) + b
প্রথম এবং শেষ স্পেস চারাকর্ম ম্যাচ^ s * | s * $
সমস্ত সম্পাদকদের দ্বারা সাধারণভাবে ব্যবহৃত
বিশেষ চীনা (editplus) জন্য কিছু রিপ্লেসমেন্ট এখানে আছে
^ [0-9]. * n
^ [^]. * n
^ [Exercise]. * n
^ [ s S] * n
^ [0-9] *.
^ [ s S] * n
< p [^<>*]>
Href = "javascript: if (confirm ('(.*?)')) window .location ='(.*?)'"
< Span style =".[^"]* rgb (255, 255, 255 )">.[^<>]*</ span >
< DIV class = xs0 > [ s S] *? </DIV >

রেগুলার এক্সপ্রেশন সিনট্যাক্স

আপনার সাধারণ রেগুলার এক্সপ্রেশন চেকলিস্টের জন্য রেগুলার এক্সপ্রেশন সিনট্যাক্স, রেগুলার এক্সপ্রেশন সিনট্যাক্স কোয়েরি, সাধারণ রেগুলার এক্সপ্রেশন সিনট্যাক্স, রেগুলার এক্সপ্রেশন বেসিক সিনট্যাক্স, সাব-এক্সপ্রেশন সিনট্যাক্স, রেগুলার এক্সপ্রেশন মডিফায়ার, রেগুলার এক্সপ্রেশন গ্রীডি মোড, রেগুলার এক্সপ্রেশন নন-গ্রীডি মোড, একটি সরল এবং দ্রুত পদ্ধতি দিয়ে স্ট্রিং নিয়ন্ত্রণ করা

আপনার পদক্ষেপ: