Ip地址的正则表达式

记下备忘

Regex.IsMatch(strIn,@ "^(\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])$ ");

原文地址:https://www.cnblogs.com/miniwiki/p/1754269.html