Several common regular expressions

xiaoxiao2021-03-05  22

(/ D {3} - | / d {4} -)? (/ d {8} | / d {7})? // Domestic phone ^ [1-9] * [1-9] [0-9 ] * $ // Tencent QQ ^ [// w -] (//. [// w -] ) * @ [// w -] (//. [// w -] ) $ // email address ^ [A-ZA-Z] : / / (// w // w ) *) (// w // w ) *) * (//? // s *)? $ // URL ^ / D $ // Non-negative integer ^ [0-9] * [1-9] [0-9] * $ 正 正 整 ^ ((- // D ) | (0 )) $ // Non - integer ^ - [0-9] * [1-9] [0-9] * $ // Negative integer ^ -? // D $ // integer ^ // D (////d )? $ // Non-looted point ^ (([0-9] //////////////////////////////ww [0-9] * [1-9] [0-9] *) | ([0 -9] * [1-9] [0-9] ) | ([0-9] * [1-9] [0-9] *)) $ 正 正float

Point ^ (((((((((0 (//. 0 )?))) $ // Non-positively floating point ^ ((([([0-9] //.[0-9]*[1-9][0-9]* )| ([[0-9]*[1-9][0-9]*//.[0-9] ) | ([0-9] * [1-9] [0-9] *)))) $ //

Floating point ^ (-? // d )? $ // floating point number ^ [A-ZA-Z] $ // String of 26 English letters ^ [AZ] $ // String ^ [AZ] $ // by 26 English letters, the string ^ [A-ZA-Z0-9] $ // by the lowercase of 26 English letters String of 26 English letters ^ // w $ // By numbers, 26 English letters, or underlined strings

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

New Post(0)