摘要: public bool IsCorrenctIP(string ip){stringpattrn=@"(/d{1,2}|1/d/d|2[0-4]/d|25[0-5])/.(/d{1,2}|1/d/d|2[0-4]/d|25[0-5])/.(/d{1,2}|1/d/d|2[0-4]/d|25[0-5])/.(/d{1,2}|1/d/d|2[0-4]/d|25[0-5])";if(System.Text.RegularExpressions.Regex.IsMatch(ip,pattrn)){return true;}else{return false;}}public boo 阅读全文