标签:png 正则 ring textbox 正则表达式 运用 csharp com ima
实现效果:

知识运用:

实现代码:
public bool validate(string str_IP) {
string regex = @"(25[0-5]|2[0-4]\d|[0-1]\d{2}|[0-9]?\d)";
return Regex.IsMatch(textBox1.Text,("^"+regex+"\\."+regex+"\\."+regex+"\\."+regex+"$"));
}
标签:png 正则 ring textbox 正则表达式 运用 csharp com ima
原文地址:https://www.cnblogs.com/feiyucha/p/10053539.html