new RegexCompilationInfo(@"^\d{4}$",RegexOptions.Compiled, "PinRegex", "", true) : RegexCompilationInfo : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » RegexCompilationInfo »

 

new RegexCompilationInfo(@"^\d{4}$",RegexOptions.Compiled, "PinRegex", "", true)








    
 

using System;
using System.Reflection;
using System.Text.RegularExpressions;

    class MainClass
    {
        public static void Main()
        {
            RegexCompilationInfo[] regexInfo = new RegexCompilationInfo[2];
            regexInfo[0] = new RegexCompilationInfo(@"^\d{4}$",RegexOptions.Compiled, "PinRegex", "", true);
            regexInfo[1] = new RegexCompilationInfo(@"^\d{4}-?\d{4}-?\d{4}-?\d{4}$",RegexOptions.Compiled, "CreditCardRegex", "", true);
            AssemblyName assembly = new AssemblyName(); 
            assembly.Name = "MyRegEx";

            Regex.CompileToAssembly(regexInfo, assembly);
       }
 }

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» RegexCompilationInfo