Common regular expression

zhaozj2021-02-16  66

^ ([/ u00c0- / u01ffa-za-z ']) $ // English letters

"^ / D $" // Non-negative integer (positive integer 0) "^ [0-9] * [1-9] [0-9] * $" // 正 整 "" ^ ((- / d ) | (0 )) $ "// Non-positive integer (negative integer 0)" ^ - [0-9] * [1-9] [0-9] * $ "// negative integer" ^ -? / D $ "// integer" ^ / D (/. / D ) $ "// Non-looted number (positive floating point 0)" ^ (([0-9] /. [0-9] * [1-9] *) | ([0-9] * [1-9] [0-9] * /. [0-9] ) | ([0-9] * [1 -9] [0-9] *)) $ "正 正 floating point number" ^ ((- / D (/ d )?) | (0 (/. 0 )?)) $ "// Non-positively floating point (12 0) "^ ((([([0-9] /. [0-9] * [1-9] [0-9] *) | ([0-9] * [1-9] [0-9] * /. [0-9] ) | ([0-9] * [1-9] [0-9] *))) $ "// loaded point number "^ (-? / d )? $" // floating point number "^ [A-ZA-Z] $" // String consisting of 26 English letters "^ [AZ] $ "// String consisting of 26 English letters" ^ [AZ] $ "// String of 26 English letters," ^ [A-ZA-Z0-9] $ " // String "^ / w $" // by numbers and 26 English letters // consisting of numbers, 26 English letters or underlined strings

"^ [A-ZA-Z] / w {2, 10} $" // By numbers, 26 English letters, can not start with numbers, 3-10 characters

"^ [/ w -] (/. [/ w -] ) * @ [/ w -] (/. [/ w -] ) $" // email address "^ [A-ZA- Z] : / / (/ w (- / w ) *) (/ w (- / w ) *) * (/? / s *)? $ "// URL

转载请注明原文地址:https://www.9cbs.com/read-16915.html

New Post(0)