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;
        }