引用空间
using System.Text.RegularExpressions;
Regex.IsMatch(txtIP.Text.ToString(), @"^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$")
引用空间
using System.Text.RegularExpressions;
Regex.IsMatch(txtIP.Text.ToString(), @"^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$")