Beispiel #1
0
        public override int Note(string txt, FileInfo fi)
        {
            List <SearchResult> results = new List <SearchResult>();

            return((int)(((float)SearchMethod.Search4(txt, refs, false, 1) / (float)txt.Length) * 400));
            //return SearchMethod.Search4(txt, refs, false, 1);
        }
Beispiel #2
0
        public override int Note(string txt, FileInfo fi)
        {
            var excel = new string[] { ".xlsx", "xlsm" };

            var patern = excel.Contains(fi.Extension) ?
                         @"(?:\s)(?:(?:\+|00)33|0)?\s?[1-9](?:[\s.-]?\d{2}){4}\b" ://for excel in phone format there is no 0 recorded
                         @"(?:\s)(?:(?:\+|00)33|0)\s?[1-9](?:[\s.-]?\d{2}){4}\b";

            return
                ((int)((((float)SearchMethod.SearchRegExp(txt, patern) * 10) / (float)txt.Length) * 400));
            //return SearchMethod.SearchRegExp(txt, patern);
        }
Beispiel #3
0
        public override int Note(string txt, FileInfo fi)
        {
            var patern = @"[[a-zA-Z0-9_]{1,50}(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}\b";

            // @"[^\W]?[[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}\b";

            if (txt.IndexOf('@') == -1)
            {
                return(0);
            }

            return
                ((int)((((float)SearchMethod.SearchRegExp(txt, patern) * 10) / (float)txt.Length) * 400));
        }