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 NTimes. For example, "o{2}" Can't match "Bob"In"o", but can match "Food"two o.
{N,}N Is a non-negative integer. Matches at least NTimes. For example, "o{2,}" can't match "Bob"In"o", but can match "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}) 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 "\NAny 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 | 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.
BMatches a word boundary, which refers to the position between the word and the space. For example, "Er b"Can match"Never"In"er"But they don't match."Verb"In"er".
BMatches non-word boundaries. "Er B"Can match"Verb"In"er"But they don't match."Never"In"er".
CxMatches the control character specified by x. For example, cM matches a Control-M or carriage return. The value of x must be one of A-Z or a-z. Otherwise, treat c as a literal "C"Character.
DMatches a numeric character. Equivalent to [0-9].
DMatches a non-numeric character. Equivalent to [^ 0-9].
FMatches a page feed character. Equivalent to x0c and cL.
nMatches a newline character. Equivalent to x0a and cJ.
rMatches a carriage return. Equivalent to x0d and 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 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] +) + $/orW +([-+.] w +) * @ w +([-.] w +) *. w +([-.] w +) *
URL/^ (https ?://)?([ da - z .-]+).([ a - z.] {2,6 })([/ w .-]*)*/?$/ or [A - zA - z ]+://[^ s] *
IP address/((2 [0-4] d | 25 [0-5] | [01]? d d?) .) {3} (2 [0-4] d | 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]?) $/or ((2 [0-4] d | 25 [0-5] | [01]? d d?) .) {3} (2 [0-4] d | 25 [0-5] | [01]? d d?)
HTML tag/^ < ([a - z ]+)([^<]+)*(?:>(.*)</ 1 > | s +/>)$/ or<(.*)(.*)>.*</ 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})
Time (hour: minutes, 24-hour clock)((1 | 0?) [0-9] | 2 [0-3]): ([0-5] [0-9])
Chinese mainland fixed telephone number( d {4} - | d {3} -)? ( d {8} | d {7})
Chinese mainland mobile phone number1 d {10}
Chinese mainland zip code[1-9] d {5}
Chinese mainland ID number (15 or 18 digits) D {15} ( d d [0-9xX])?
Non-negative integer (positive integer or zero) D +
positive integer[0-9] * [1-9] [0-9] *
negative integer- [0-9] * [1-9] [0-9] *
integer-? d +
decimal(-? d +) (. d +)?
blank line N s * r or n n (editplus) or ^ [ s S] * n
QQ number[1-9] d {4,}
Words that do not contain abcB ((?! abc) w) + b
Match first and last whitespace characters^ s * | s * $
commonly used by editors
Here are some replacements for special Chinese (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 >

regular expression syntax

Regular expression syntax for your common regular expression checklist, regular expression syntax query, common regular expression syntax, regular expression basic syntax, sub-expression syntax, regular expression modifier, regular expression greedy mode, regular expression non-greedy mode, through a simple and fast way to control the string.

Your footsteps: