ਰੈਗੂਲਰ ਚਾਰਕਟ | ਵਰਣਨ |
---|---|
\ | ਅਗਲੇ ਚਾਰਕਟ ਨੂੰ ਇੱਕ ਵਿਸ਼ੇਸ਼ ਚਾਰਕਟ, ਜਾਂ ਇੱਕ ਸ਼ਬਦਿਕ ਚਾਰਕਟ, ਜਾਂ ਪਿੱਛਲੀ ਸੰਦਰਭ ਜਾਂ ਓਕਟਲ ਇਸਕੇਪ ਚਾਰਕਟ ਦੇ ਰੂਪ ਵਿੱਚ ਮਾਰਕ ਕਰਦਾ ਹੈ। ਉਦਾਹਰਣ ਵਜੋਂ, “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,}. |
? | ਪਿਛਲੇ ਉਪ ਪ੍ਰਗਟਾਵੇ ਨੂੰ ਜਾਂ ਏਕ ਵਾਰ ਮੇਲ ਕਰਦਾ ਹੈ। ਉਦਾਹਰਣ ਵਜੋਂ, "ਕਰਦੇ ਹਨ? "Can match"ਕਰਦਾ ਹੈ "Or"ਕਰਦਾ ਹੈ "In"ਕਰਦੇ ਹਨ ".? ਇਕੱਵਲੈਂਟ ਕਰਦਾ ਹੈ {0,1}. |
{N} | N ਇੱਕ ਨਾਨ-ਨੈਗੈਟਿਵ ਇੰਟੀਜਰ। ਮੇਲ ਕਰਨ ਦਾ ਨਿਰਧਾਰਣ NTimes. For example, "o{2} " ਨੂੰ ਮੇਲ ਨਹੀਂ ਕਰ ਸਕਦਾ "Bob "In"o " ਨੂੰ ਮੇਲ ਕਰ ਸਕਦਾ ਹੈ "Food " ਦੋ ਓ. |
{N,} | N ਇੱਕ ਨਾਨ-ਨੈਗੈਟਿਵ ਇੰਟੀਜਰ। ਮੇਲ ਕਰਨ ਵਾਲੇ ਘੱਟ ਤੋਂ ਘੱਟ NTimes. For example, "o{2,} " ਨੂੰ ਮੇਲ ਨਹੀਂ ਕਰ ਸਕਦਾ "Bob "In"o " ਨੂੰ ਮੇਲ ਕਰ ਸਕਦਾ ਹੈ "ਫੋਓਓਓਡ " 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}) Later, the matching pattern is non-greedy. The non-greedy pattern matches as few strings as possible, while the default greedy pattern matches as many strings as possible. For example, for string "Oooo ",O +? "Will match a single"o "And"O + "Will match all"o ". |
. | Match except ",\ N Any single character other than ". To match include"\ N "Any character included, please use something like"(. | n) "The model." |
(Pattern) | Matches the pattern and gets the match. The obtained match can be obtained from the resulting Matches collection, using the SubMatches collection in VBScript and the 0 dollars... 9 dollars attribute in JScript. To match parenthesis characters, use " ( "Or") ". |
(?: pattern) | Matches the pattern but does not fetch the match result, that is, it is a non-fetch match and is not stored for later use. This is used in the or character "(|) "It is useful to combine parts of a pattern. For example"industr (?: y | ies) "Just a comparison"Industries | industries "A more abbreviated expression." |
(? = pattern) | Positive presearch matches the lookup string at the beginning of the string of any matching pattern. This is a non-fetching match, that is, the match does not need to be fetched for later use. For example, "Windows (? = 95 | 98 | NT | 2000) "Can match"Windows 2000 "In"Windows "But they don't match."Windows 3.1 "In"Windows ". Pre-search does not consume characters, that is, after a match occurs, the search for the next match begins immediately after the last match, rather than after the character containing the pre-search." |
(?! pattern) | Forward negative lookup, which matches the lookup string at the beginning of any string that does not match the pattern. This is a non-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 | Matches a word boundary, which refers to the position between the word and the space. For example, "Er b "Can match"ਕਦੇ ਨਹੀਂ "In"er "But they don't match."Verb "In"er ". |
B | Matches non-word boundaries. "Er B "Can match"Verb "In"er "But they don't match."ਕਦੇ ਨਹੀਂ "In"er ". |
Cx | ਵਿੱਚ ਦਿੱਤੇ ਕੰਟਰੋਲ ਚਾਰੈਕਟਰ ਨੂੰ ਪਛਾਣਦਾ ਹੈ। ਉਦਾਹਰਣ ਵਜੋਂ, cM ਕੰਟਰੋਲ-M ਜਾਂ ਕਰੋਨ ਰਿਟਰਨ। ਵੈਲਿਊ ਆਕਸ ਨੂੰ ਹੇਠ ਲਿਖੇ ਵਿੱਚੋਂ ਇੱਕ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ 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 digits) |
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 | /| 0?) [02 [0-4d | 25 [0-5] | [01? d d?) .) {3}2 [0-4d | 25 [0-5] | [01]? d d?)/ /^((?: 25 [0-5]: ([0 2 [0-4] [0-9] | [01? [0-9] [0-9 ?.){ 3}) 25 [0-5]: ([0 2 [0-4] [0-9] | [01? [0-9] [0-9?) $/ਜਾਂ | 0?) [02 [0-4d | 25 [0-5] | [01? d d?) .) {3}2 [0-4d | 25 [0-5] | [01]? d d?) |
HTML tag | /^ < ([a - z ]+)([^<]+)*(?:>(.*)</ 1 > | s +/>)/ ਜਾਂ<(.*)(.*)>.*</ 1 >|<(.*) /> |
Remove Code\ Comments | (? <! http: | S)//. * $ |
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) | [- -: -, -! - 🥰] |
Date (year-month-day) | ( d {4}) | d {2) - ((0? ([1-9)) | (1 [1 | 2)) - ((0? [1-9)) | ([12] ([1-9)) | (3 [0 | 1)) |
Date (Month/Day/Year) | ((0? [1-9] {1)) | (1 [1 | 2))/(0? [1-9] | ([12] [1-9)) | (3 [0 | 1))/( d {4}) | d {2) |
ਸਮਾਂ (ਘੰਟੇ: ਮਿੰਟਾਂ, 24-(( | | 0?) [01 ] |-9]: ([0 2 [0-3)-5] [0-9) |
ਚੀਨੀ ਮੁੱਖਧਰਾ ਫਾਸਟ ਫੋਨ ਨੰਬਰ | ( d {4} - | d {3} -)? ( d {8}) | d {7) |
ਚੀਨੀ ਮੁੱਖਧਰਾ ਮੋਬਾਈਲ ਫੋਨ ਨੰਬਰ | 1 d {10} |
ਚੀਨੀ ਮੁੱਖਧਰਾ ਪਿਨ ਕੋਡ | [1-9] d {5} |
ਚੀਨੀ ਮੁੱਖਧਰਾ ਆਈਡੀ ਨੰਬਰ (15 ਜਾਂ 18 digits) | 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 > |
ਆਮ ਰੈਗੁਲਰ ਐਕਸਪ੍ਰੈਸ਼ਨ ਚੈੱਕਲਿਸਟ, ਰੈਗੁਲਰ ਐਕਸਪ੍ਰੈਸ਼ਨ ਸਿਨਟੈਕਸ ਪ੍ਰਸ਼ਨ, ਆਮ ਰੈਗੁਲਰ ਐਕਸਪ੍ਰੈਸ਼ਨ ਸਿਨਟੈਕਸ, ਰੈਗੁਲਰ ਐਕਸਪ੍ਰੈਸ਼ਨ ਬੇਸਿਕ ਸਿਨਟੈਕਸ, ਸਬ-ਐਕਸਪ੍ਰੈਸ਼ਨ ਸਿਨਟੈਕਸ, ਰੈਗੁਲਰ ਐਕਸਪ੍ਰੈਸ਼ਨ ਮੋਡੀਫਾਈਅਰ, ਰੈਗੁਲਰ ਐਕਸਪ੍ਰੈਸ਼ਨ ਗ੍ਰੀਡੀ ਮੋਡ, ਰੈਗੁਲਰ ਐਕਸਪ੍ਰੈਸ਼ਨ ਨਾਨ--ਗ੍ਰੀਡੀ ਮੋਡ, ਇੱਕ ਸਰਲ ਅਤੇ ਤੇਜ਼ ਤਰੀਕੇ ਨਾਲ ਸਟ੍ਰਿੰਗ ਕੰਟਰੋਲ ਕਰਨ ਲਈ.