BExIS.Ddm.Providers.LuceneProvider.Helpers.EncoderHelper.SpecialCharactrersInValue C# (CSharp) Метод

SpecialCharactrersInValue() приватный статический Метод

Check if SpecialCharacter is in the incoming value string
private static SpecialCharactrersInValue ( string value ) : bool
value string
Результат bool
        private static bool SpecialCharactrersInValue(string value)
        {
            string regExPattern = @"[+\-&&||!(){}[\]~*?:\\""]";

            Regex rgx = new Regex(regExPattern, RegexOptions.IgnoreCase);
            Match m = rgx.Match(value);
            if (m.Success)
            {
                return true;
            }

            return false;
        }