17 classic regular expressions: "^ // D $" // Non-negative integer (positive integer 0) "^ [0-9] * [1-9] [0-9] * $" // Integer "^ ((- // d ) | (0 )) $" // Non-positive integer (negative integer 0) "^ - [0-9] * [1-9] [0-9] * $ "// negative integer" ^ -? // D $ "// integer" ^ // D (///// D )? $ "// Non-doubling number (positive floating point 0)" ^ (((( [0-9] //. [0-9] * [0-9] *) | ([0-9] * [1-9] [0-9] * //////////ww 0-9] ) | ([0-9] * [1-9] [0-9] *)) $ "// positive floating point number" ^ ((- // D (//// D ) ?) | (0 (//. 0 )?)) $ "// Non-positively floating point number (12 0)" ^ (([([0-9] //. [0-9 ] * [1-9] *) | ([0-9] * [1-9] [0-9] * /////////////ww [0-9] ) | ([0-9] * [1-9] *))) $ "// load point number" ^ (-? // d )? $ "// floating point number ^ [a -ZA-Z] $ "// String" ^ [AZ] $ "// by 26 English letters" ^ [AZ] $ "// String "^ [A-ZA-Z0-9] $" // by 26 English letters, "^ // w $" // by numbers, "^ // w $" // by numbers, 26 English letters or underlined strings "^ [// w -] (/// w -] ) * @ [// w -] (//. [// w-] ) $ "// email address" ^ [A-ZA-Z] : // (// w // w ) *) (//. (// w // w ) *) ) * (//? // s *) $ "// url