private void Init(string pattern, bool isComplex, bool separator, bool keyword) { StringPattern = pattern; IsSeparator = separator; IsKeyword = keyword; IsComplex = isComplex; if (isComplex) rx = new Regex(StringPattern, RegexOptions.Compiled); } }