public Pattern(string pattern, bool iscomplex) { StringPattern = pattern; if (iscomplex) { IsComplex = true; rx = new Regex(StringPattern, RegexOptions.Compiled); } else { IsComplex = false; } }