WikiFunctions.DynamicRegexArticleComparer.DynamicRegexArticleComparer C# (CSharp) Method

DynamicRegexArticleComparer() public method

public DynamicRegexArticleComparer ( string comparator, RegexOptions options ) : System.Text.RegularExpressions
comparator string
options RegexOptions
return System.Text.RegularExpressions
        public DynamicRegexArticleComparer(string comparator, RegexOptions options)
        {
            Comparator = comparator;
            Options = (options & ~RegexOptions.Compiled);
            // Create a regex to try it out. Throws an exception if there's a regex error
            new Regex(Tools.ApplyKeyWords("a", comparator), options);
        }
DynamicRegexArticleComparer