privateboolIsPhone(stringphone){//电信手机号码正则stringdianxin=@"^1[3578][01379]\d{8}$";RegexdReg=newRegex(dianxin);//联通手机号正则stringliantong=@"^1[34578][01256]\d{8}$";RegextReg=newRegex(liantong);//移动手机号正则stringyidong=@"^(134[012345678]\d{7}|1[34578][012356789]\d{8})$";RegexyReg=newRegex(yidong);if(dReg.IsMatch(phone)||tReg.IsMatch(phone)||yReg.IsMatch(phone)){returntrue;}returnfalse;}
700字范文,内容丰富有趣,生活中的好帮手!