using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Common { public sealed class ValidatePattern { public const string MAC = @"^([0-9a-fA-F]{2})((-[0-9a-fA-F]{2}){5})$"; public const string IPAddress = @"((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))"; } }