రెగ్యులార్ అక్షరం | describe |
---|---|
\ | తరువాత అక్షరాన్ని ప్రత్యేక అక్షరంగా, లేదా సాధారణ అక్షరంగా, లేదా పూర్వ సూచకంగా, లేదా ఎక్స్కేప్ అక్షరంగా గుర్తించబడింది. ఉదాహరణకు, “N " ముద్దలు అక్షరం సరిపోయేదిN ". n " కొత్త వరుస అక్షరం సరిపోయేది. సరిలో ముద్దలు "\\ "Match."\ " మరియు " ( "Then match"( ". |
^ | ఇన్పుట్ స్ట్రింగ్ యొక్క ప్రారంభ స్థానం సరిపోయేది. మల్టీలైన్ ప్రాపర్టీ ఆఫ్ రెగ్యులార్ ఎక్స్ప్రెషన్ ఆబ్జెక్ట్ సెట్ అయితే, ^ కూడా సరిపోయేది “ n "Or" r " తరువాత. |
$ | ఇన్పుట్ స్ట్రింగ్ యొక్క ముగింపు స్థానం సరిపోయేది. $ మల్టీలైన్ ప్రాపర్టీ ఆఫ్ రెగ్యులార్ ఎక్స్ప్రెషన్ ఆబ్జెక్ట్ సెట్ అయితే కూడా సరిపోయేది “ n "Or" r " ముందస్తు స్థానం. |
* | ముందస్తు ఉపరూపం కనీసం లేదా అనేకసార్లు సరిపోయేది. ఉదాహరణకు, zo * సరిపోయేది కాలేదు “Z " మరియు "zoo ". * అనురూపం {0,}. |
+ | ముందస్తు ఉపరూపం ఒకసారి లేదా అనేకసార్లు సరిపోయేది. ఉదాహరణకు, "zo+ "Can match"zo " మరియు "zoo "But they don't match."Z ".+ అనురూపం {1,}. |
? | ముందస్తు ఉపరూపం కనీసం లేదా ఒకసారి సరిపోయేది. ఉదాహరణకు, "do(es)? "Can match"does "Or"does "In"do ".? అనురూపం {0,}1}. |
{N} | N అనాచరణ సంఖ్య. సరిపోయేది నిర్ధారించబడింది-నిరాకరణ సంఖ్య. సరిపోయేది నిర్ధారించబడింది NTimes. For example, "o{2} " సరిపోయేది కాదుBob "In"o " కాని " మీద సరిపోయేదిFood " రెండు o. |
{N,} | N అనాచరణ సంఖ్య. సరిపోయేది నిర్ధారించబడింది-నిరాకరణ సంఖ్య. కనీసం సరిపోయేది NTimes. For example, "o{2,} " మీద సరిపోయేది కాదుBob "In"o " కాని " మీద సరిపోయేదిfoooood " all o."O {1,} "Equivalent to"O + ".O {0,} "Is equivalent to"O * ". |
{N,m} | mandNBoth are non-negative integers, whereN< =mLeast matchNsecond and most matchesmTimes. For example, "O {1,3} "Will match"FOOOOD "The first three o's in."O {0, 1} "Equivalent to"O? ". Please note that there can be no spaces between commas and two numbers." |
? | When the character immediately follows any other restrictor (*,+,?،{N,}, {N,}, {N,m}) తర్వాత, అనుగుణ పేటర్న్ అనుగుణంగా చేస్తుంది-గ్రీడీ.-గ్రీడీ పేటర్న్ ఎక్కువ స్ట్రింగ్స్ ను తగ్గించుకుంటుంది, అయితే డిఫాల్ట్ గ్రీడీ పేటర్న్ ఎక్కువ స్ట్రింగ్స్ ను అనుగుణంగా చేస్తుంది. ఉదాహరణకు స్ట్రింగ్ "Oooo ","O +? "ఒకే అక్షరం అనుగుణంగా చేస్తుంది"o "మరియు"O + "అన్నింటినీ అనుగుణంగా చేస్తుంది"o ". |
. | అనుగుణంగా కాదు"\ N ఏ ఒక్క అక్షరం లేదా డాలర్స్ లో ఉన్న అక్షరం లేదు. అనుగుణంగా ఉండడానికి ఉపయోగించండి"\ N "సరికొత్త అక్షరం లో ఉన్న ఏ అక్షరం కలిగిన, దానికి ఉపయోగించండి"(. | n) "మోడల్. |
(పేటర్న్) | పేటర్న్ అనుగుణంగా మరియు మేచ్ ఫలితాన్ని పొందుతుంది. పొందిన మేచ్ ఫలితం మొదటి మేచ్ కలిగిన మేచ్ కలెక్షన్ నుండి పొందబడవచ్చు, విబిస్క్రిప్ట్ లో సబ్ మేచ్ కలెక్షన్ ఉపయోగించడం ద్వారా 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 | y | Matches 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." |
B | అక్షరం అనుగుణంగా, ఇది పదం మరియు అంతరం మధ్య స్థానాన్ని సూచిస్తుంది. ఉదాహరణకు, "Er b "Can match"ఎప్పుడూ "In"er "But they don't match."Verb "In"er ". |
B | అనుగుణంగా-word boundaries. "Er B "Can match"Verb "In"er "But they don't match."ఎప్పుడూ "In"er ". |
Cx | x ద్వారా నిర్దేశించబడిన కంట్రోల్ అక్షరం అనుగుణంగా. ఉదాహరణకు, cM కంట్రోల్-M లేదా కారెజ్ రిటర్న్. x యొక్క విలువ అనేకందుకు A-Z లేదా a-z. లేకపోతే, c ను లిటరల్ "గా చేయండిC "అక్షర." |
D | నంబరిక అక్షరం అనుగుణంగా. అనుకూలించుకుంటుంది [0-9]. |
D | నాన్-నంబరిక అక్షరం. అనుకూలించుకుంటుంది [^ 0-9]. |
F | పేజీ ఫీడ్ అక్షరం అనుగుణంగా. అనుకూలించుకుంటుంది x0c మరియు cL. |
n | న్లైన్ అక్షరం అనుగుణంగా. అనుకూలించుకుంటుంది x0a మరియు cJ. |
r | కారెజ్ రిటర్న్ అనుగుణంగా. అనుకూలించుకుంటుంది x0d మరియు cM. |
s | Matches any whitespace character, including spaces, tabs, page feeds, etc. Equivalent to [ f n r t v]. |
S | Matches any non-whitespace character. Equivalent to [^ f n r t v]. |
t | Matches a tab. Equivalent to x09 and cI. |
V | Matches a vertical tab. Equivalent to x0b and cK. |
W | Matches any word character including an underscore. Equivalent to "[A-Za-z0- 9_] ". |
W | Matches any non-word character. Equivalent to "[^ A-Za-z0- 9_] ". |
XN | matchN, 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.. |
\Num | matchNum, in whichNumIs a positive integer. A reference to the match obtained. For example, "(.) 1 "Matches two consecutive identical characters." |
\N | Identifies 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. |
\nm | Identifies 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. |
\nml | IFNIs an octal number (0-3), andM and lBoth are octal digits (0-7), then match the octal escape valuenmL. |
uN | matchN, 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] | [01d d?) .)3}2 [0-4d | 25 [0-5] | [01]? d d?)/ /^((?: 25 [0-5] | 2 [0-4] [0-9] | [01[0-9] [0-9 d?) .) 3} 25 [0-5] | 2 [0-4] [0-9] | [01[0-9] [0-9$/లేదా ((2 [0-4d | 25 [0-5] | [01d d?) .)3}2 [0-4d | 25 [0-5] | [01]? d d?) |
HTML tag | /^ < ([a - z ]+)([^<]+)*(?:>(.*) 1 > | s +/>)$/ లేదా<(.*)(.*)>.*</ 1 >|<(.*) /> |
Remove Code\ Comments | (? |
Match double-byte characters (including Chinese characters) | [^ x00- xff] |
Kanji (character) | [One -] |
Range of Chinese characters in Unicode encoding | /^ [-] + $/ |
Chinese and full-width punctuation marks (characters) | [- -: -, -! - 🥰] |
తేదీ (సంవత్సర-నెల-రోజు) | ( 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,} |
అబ్స్క్లూజ్ కాదు abc కలిగిన పదాలు | B ((?! 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 > |
మీ సాధారణ రెగ్యులర్ ఎక్స్ప్రెషన్ జాబితా కోసం రెగ్యులర్ ఎక్స్ప్రెషన్ సింటాక్స్, రెగ్యులర్ ఎక్స్ప్రెషన్ సింటాక్స్ కొరకు విచారణ, సాధారణ రెగ్యులర్ ఎక్స్ప్రెషన్ సింటాక్స్, రెగ్యులర్ ఎక్స్ప్రెషన్ బేసిక్ సింటాక్స్, సబ్-ఎక్స్ప్రెషన్ సింటాక్స్, రెగ్యులర్ ఎక్స్ప్రెషన్ మోడిఫైర్, రెగ్యులర్ ఎక్స్ప్రెషన్ గ్రీడీ మోడ్, రెగ్యులర్ ఎక్స్ప్రెషన్ నాన్--గ్రీడీ మోడ్, సరళమైన మరియు వేగవంతమైన మార్గం ద్వారా స్ట్రింగ్ నియంత్రించడానికి.