/// Validate that String is an IP address.
/// Between 0.0.0.0 and 255.255.255.255
///
protected Regex regIP = new Regex(
@"(?
+ @"[0-5]|[01]?\d\d?)\.(?
+ @"
RegexOptions.IgnoreCase
| RegexOptions.CultureInvariant
| RegexOptions.IgnorePatternWhitespace
| RegexOptions.Compiled
);
No comments:
Post a Comment