Verify IP Address, login account, password, EMAIL, phone number [including cell phone and landline phone
var patterns = new Object ();
var Thepat;
var r, re;
Patterns.ip =/^ (d{1,2}|1dd|2[0-4]d|25[0-5]) (. ( D{1,2}|1DD|2[0-4]D|25[0-5])) {3}$/g;
Patterns.id =/^[a-za-z0-9_]{1,20}$/g;
patterns.ps Tutorial w =/^[a-za-z0-9]{6,20}/g;
Patterns.email =/w+ ([-+.] w+) *@w+ ([-.] w+) *.w+ ([-.] w+) */g;
Patterns.num =/^d{1,10}$/g;
Patterns.post =/^[1-9]d{5}$/g;
Patterns.tel =/^ (1 (3|5) [0-9]d{8}) | (0[1-9]{3}[-][1-9]d{6,7}[-]d{1,5}) | (0[1-9]{2}[-][1-9]d{7}[-]d{1,5}| ([1-9]{1}d{6,7}) | (0[1-9]{3}[-][1-9]d{6,7}) | (0[1-9]{2}[-][1-9]d{7})) $/g;
Patterns.net =/^http://([w-]+.) +[w-]+ (/[w-/?%&=]*)?/g;
Patterns.date =/^[1-9]d{3}[-] ((0[1-9) | ( 1[0-2])) [-] ((0[1-9]) | ( 1[0-9]) | (2[0-9]) | (3[0-1]) $/g;//yyyy-mm-dd
patterns.variable =/^[a-za-z_][a-za-z0-9_]{0,120}$/g;//variable name, a string of letters, numbers, and underscores that begin with an underscore or letter