常用的正则表达式

IP地址的正则表达式:

Regex.IsMatch(strIn,@ "^(d{1,2}|1dd|2[0-4]d|25[0-5]).(d{1,2}|1dd|2[0-4]d|25[0-5]).(d{1,2}|1dd|2[0-4]d|25[0-5]).(d{1,2}|1dd|2[0-4]d|25[0-5])$ ");

原文地址:https://www.cnblogs.com/sunliyuan/p/6029070.html