Re analysis used in the project

Source: Internet
Author: User

1. @ "<SCRIPT [^>] *?>. *? </SCRIPT> "matching JavaScript labels and content
[^>]: [^] Is the exclusion group, which matches all characters except>.
*? : Non-Greedy mode that ignores the priority quantifiers
2. @ "<(. [^>] *)>" match "<>" tag
3. @ "([\ r \ n]) [\ s] +" Match line breaks and carriage returns
4. @ "& (quot | #34);" matching HTML characters "\"
@ "& (Amp | #38);" matching HTML characters "&"
@ "& (LT | #60);" matching HTML characters "<"
@ "& (GT | #62);" matching HTML characters ">"
@ "& (Nbsp | #160);" matching HTML characters ""
@ "& # (\ D +);" matches all HTML characters
5. @ "& (iexcl | #161);" Match Unicode Character \ xA1 I (inverted exclamation point)
@ "& (Iexcl | #162);" Match Unicode Character \ xa2 currency (currency unit) Cent
@ "& (Iexcl | #163);" matches Unicode characters \ xa3 £. (currency ).
@ "& (Iexcl | #169);" matches the Unicode Character \ xa9 Trademark
6. @ "^ [\ W,-, _] {3,} $" Match character or number or-or _ at least 3 times
^: Start position of the string
$: String end position
[] {M ,}: number modifier, at least m
\ W: any letter, number, or underline, that is, ~ Z, ~ Z, 0 ~ 9, _ Any
7. @ "^ [A-Z, 0-9, A-Z, _,-] {3,} $" Same as above
8. @ "\ D (: \ D) *" matching format: or
\ D: matching number
*: Match more than 0 times
9 .@"(? I )(? <Sid> (\? | &) SID = [\ W, +,/,-, =, \] *)"
(? I): inline matching mode, case insensitive.
(? <Sid>): The specified Sid is not a capture group.
(\? | &): Match? Or &
[\ W, +,/,-, =, \] *: matches any number of projects in the group from 0
10 .@"(? I )(? <Fromsso> (\? | &) Fromsso = [\ W, +,/,-, =, \] *) (\ B | &)"
(? I): inline matching mode, case insensitive.
(? <Fromsso>: The fromsso is not a capture group.
\ B: match a word boundary
11 .@"(\? | &) Result = (0 | 1 | 2 | 3) (\ B | &) "Same as above
12. @ "^ (http ://)? ((? <Host> (\ W + | _ +) (-\ W *)*).)? I12320.com (/. *) * "url rules that match shapes such as http://www.i12320.com
13. @ "^ (http ://)? ((? <Host> (\ W + | _ +) (-\ W *)*).)? I12320.com /? $ "Match http://www.i12320.com home
14. @ "^ [-]? \ D + $ "matching rational quantity
^ [-]? : Starts matching "-" 0 or 1 time
\ D + $: The character end matches "Number" more than once
15. @ "^ [+ |-]? \ D * (. \ D + )? %? $"
^ [+ |-]? : Starts to match "+" or "-" 0 times or 1 time
\ D *: match a number more than once
. \ D +: Match "." Once, number more than once
(. \ D + )? : Match 0 times or 1 time
%? : Match "%" 0 times or 1 time
16 .@"\? \ X08 * \ W + \ x08 * = \ x08 * \ W * "Match URL parameters
\? : Match "? "
\ X08 *: matches the unsigned characters 0 to multiple times
\ W +: match any letter, number, or underline for 1 to multiple times
=: Match "="
17 .@"\? (? <Token> SID \ x20 * = \ x20 * \ W * \ x20 *) (& | $ )"
\? : Match?
(? <Token>): The specified token is not a capture group.
\ X20 *: matches spaces 0 to multiple times
\ W *: match any letter, number, or underline 0 to multiple times
(& | $): Matches "&" or the end of the character
18. @ "_ * \ W + (-? \ W +) * @ _ * \ W + (-? \ W +) * (. _ * \ W + (-? \ W +) *. \ W * "matching email address
_ *: Match "_" 0 to multiple times
\ W +: match any letter, number, or underline for 1 to multiple times
-? \ W +: Match "-" 0 to 1, \ W same as above
(-? \ W +) *: matches 0 to multiple times.
@: Match "@"
_ *: "_" Matches 0 to multiple times
(. _ * \ W + (-? \ W +) *: "." matches any letter, number, or underline once or twice. Matches 0 to multiple times in parentheses.
19 .@"\.*(? <URL> (http ://)? ([\ W-] + \.) + [\ W-] + (/[\ W -./? % & =] *)?) \. * "Match URL
\. *: Match "," 0 to multiple times
(? <URL>): Specifies a <URL> non-capturing group.
(Http ://)? : Match "http: //" 0 or 1 time
([\ W-] + \.) +: Match "\ W-." 1 to multiple times
(/[\ W -./? % & =] *)?
20. @ "^ \ D {7} (\ D) $" indicates the eight-digit number of the lunar calendar date, for example: 20070209
21. @ "^ -? \ D + $ "Same as 14
22. @ "^ [0-9] \ D * $" matches numbers
23. @ "^ ([^ <> () [\] \.,;: \ s @ \ ""] + "+ @"(\. [^ <> () [\] \.,;: \ s @ \ ""] +) *) | (\"". + \ "") @ "+ @" (\ [0-9] {1, 3 }\. [0-9] {1, 3 }\. [0-9] {1, 3} "+ @"\. [0-9] {1, 3} \]) | ([A-Za-Z \-0-9] + \.) + "+ @" [A-Za-Z] {2,}) $ "matching email *
24. @ "^ (\ D {3} \) | (\ D {3}-) | (\ D {4 }\)) | (\ D {4 }-))? \ D {5 ,}$ "matching phone number
(\ D {3} \): Match "(", "Number 3 times ",")"
(\ D {3}-): matches "Number 3 times ","-"
(\ D {4} \): Match "(", "Number 4 times ",")"
(\ D {4}-): Match "Number 4 times ","-"
^ (| )? : One of the preceding cases occurs 0 or 1 time at the beginning.
\ D {5 ,}$: The number appears more than 5 times at the end
25. @ "^ (HTTP | https): \ // \ W + \. \ W +" Match URL
^ (HTTP | https): Match "HTTP" or "HTTPS" at the beginning"
: Match ":"
\/: Escape matching "/"
\ W +: match any letter, number, or underline
\.: Match "."
26. @ "^ [+,-]? (180 \ "") $ | ^ [+,-]? ([0, 1]? [0-7]? \ D \ "" ([0-5]? \ D) | (60) \ '([0-5]? \ D +) | (60 ))? (\. \ D + )?)?) $ "Match longitude
^ [+,-]? : Match "+" or "-" 0 or 1 time at the start
(180 \ "") $: the end matches "180 ",""","""
[0, 1]? : Match "0" or "1" 0 or 1 time
[0, 7]? : Match "0" or "7" 0 or 1 time
[0-5]? : Match "0-5" 0 times or 1 time
(60) \ ': Match "60 ","'"
\. \ D +: Match ".", "Number" once or multiple times,
27. @ "^ [+,-]? (90 \ "") $ | ^ [+,-]? ([0-8]? \ D \ "" ([0-5]? \ D) | (60) \ '([0-5]? \ D +) | (60 ))? (\. \ D + )?)?) $ "Match latitude
28. @ "^ ([0-1] [0-9]) | (2 [0-3]) | ([0-9]) :( ([0-5] [0-9]) | ([0-9])-([0-1] [0-9]) | (2 [0-3]) | ([0-9]) :( ([0-5] [0-9]) | ([0-9]) $ "effective working time: Time Format: 08: 00-
29. @ "^ ([0-1] [0-9]) | (2 [0-3]) | ([0-9]) :( ([0-5] [0-9]) | ([0-9]) $ "Valid time for matching: Time Format: 08: 00
30. @ "^ ([1-2] [0-9] [0-9] [0-9]-[0-1] [0-9]-[0-3] [0-9]) $ "matched Date of birth

 

Re analysis:
Match base64:
This one is good, but will match an empty string: ^ (? : [A-Za-z0-9 +/] {4 })*(? : [A-Za-z0-9 +/] {2} = | [A-Za-z0-9 +/] {3} = )? $

This one does not match empty string: ^ (? : [A-Za-z0-9 +/] {4 })*(? : [A-Za-z0-9 +/] {2 }==| [A-Za-z0-9 +/] {3 }=| [A-Za-z0-9 +/] {4}) $

 

Regular Expression of the date in the datetime range
^ ((?! 0000) [0-9] {4}-(0 [1-9] | 1 [0-2]) -(0 [1-9] | 1 [0-9] | 2 [0-8]) | (0 [13-9] | 1 [0-2]) -(29 | 30) | (0 [13578] | 1 [02])-31) | ([0-9] {2} (0 [48] | [2468] [048] | [13579] [26]) | (0 [48] | [2468] [048] | [13579] [26]) 00)-02-29) $

Dd/mm/yyyy: date in the format of "day, month, and year.
^ (? :(? :(? : 0? [1-9] | 1 [0-9] | 2 [0-8]) ([-/.]?) (? : 0? [1-9] | 1 [0-2]) | (? : 29 | 30) ([-/.]?) (? : 0? [13-9] | 1 [0-2]) | 31 ([-/.]?) (? : 0? [2, 13578] | 1 [02]) ([-/.]?) (?! (0000) [0-9] {4} | 29 ([-/.]?) 0? 2 ([-/.]?) (? : [0-9] {2 }(? : 0 [48] | [2468] [048] | [13579] [26]) | (? : 0 [48] | [2468] [048] | [13579] [26]) 00) $

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.