System.Utilities.Validation.Validation C# (CSharp) Method

Validation() static private method

static private Validation ( ) : System.Text.RegularExpressions
return System.Text.RegularExpressions
        static Validation()
        {
            MatchFileName = new Regex(@"^[^ \\/:*?""<>|]+([ ]+[^ \\/:*?""<>|]+)*$", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Singleline);
            MatchHTTPURI = new Regex(@"^(http|https)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&amp;%\$#\=~])*$", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchIPv4 = new Regex(@"^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})){3}$", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchIPv6 = new Regex(@"^([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}$", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchEmail = new Regex(@"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.IgnoreCase);
            MatchPhone1 = new Regex("^(1\\s*[-\\/\\.]?)?(\\((\\d{3})\\)|(\\d{3}))\\s*[-\\/\\.]?\\s*(\\d{3})\\s*[-\\/\\.]?\\s*(\\d{4})\\s*(([xX]|[eE][xX][tT])\\.?\\s*(\\d+))*$", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchPhone2 = new Regex("^([\\(]?(?<AreaCode>[0-9]{3})[\\)]?)?[ \\.\\-]?(?<Exchange>[0-9]{3})[ \\.\\-](?<Number>[0-9]{4})$", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchZIP = new Regex("^\\d{5}(?:[-\\s]\\d{4})?$", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchZIP5 = new Regex("^\\d{5}$", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchAlphaNumeric = new Regex("^[a-zA-Z0-9]", RegexOptions.Compiled | RegexOptions.Singleline);
            MatchNumeric = new Regex("^[0-9]", RegexOptions.Compiled | RegexOptions.Singleline);
        }